I am fetching some data from a table. Suppose my query is like this
select ename from emp where job="clerk"
This is returning duplicate ename too but in order in which they have entered.
I modified this to
select distinct ename from emp where job="clerk"
I did this to avoid duplicate values.But ename are coming in alphabetically ascending order. But i want this in the order in which i have entered data as it was coming without using distinct.