I have an interesting issue with the below SELECT.
Its about ORDER BY clause; I am
Thanks a lot for your inputs. i have to sort using ORDER BY with a variable p_sortby where p_sortby can take any column_name or column position.