Following is my stored procedure. If I take the DISTINCT out then
everything works fine. BUT I need the distinct because it returns
duplicate records. If I put the DISTINCT in then I get the following
error:
ERROR 145: ORDER BY items must appear in the select list if SELECT
DISTINCT is specifie...
more >>