I have a query, I have to sort the result from the DB2 database. The query will select the columns empname,salary,status
. But I have to sort the result using order by empno
But the query is not working.. This is the query.
select empname, salary, status from emp where salary>5000 order by empno
Can you update the query to sort by empno
without using it in selecting columns?