I have this sql query:
SET @row_num=0;
SELECT @row_num:=@row_num+1 as 'Num', book_title, author_name
FROM books
When I test this query in phpmyadmin, it show result perfectly but when I test it in Pentaho User Console, it show error.
Can anyone tell me what is wrong with my query? Is there any other way I can fix it so that it will show the result perfectly in Pentaho?