Hi All,
I have a very simple version of the query that I am running and the 'Order By' part does not seem to work. The query does return all the rows that I need. For the 'Order By' tried doing an Ascend and Descend and it has no effect. Here is the query...
SELECT
p.c1, p.c2,
(seLECT ifnull(b8, 0) from lib2.file2
WHERE b1 = p.c1 and b2 = p.c2 ) as c3
FROM
Lib1.file1 as p
WHERE
< have some conditions>
order by c3
where c1 and c2 are columns in Lib1.file1 table
b1, b2 and b8 are columns in lib2.file2 table
c3 is the column name for the sub query that returns one
row and one column
Also. tried using the column number for the 'Order By' and then I get a syntax error.
If you might know what the error is, please let me know.
Thanks.