DBA > Job Interview Questions > DATABASE Administrator (DBA) Interview Questions and Answers
How do I display row number with records?
More DBA job interview questions and answers at http://dba.fyicenter.com/Interview-Questions/
(Continued from previous question...)
58. How do I display row number with records?
Answer1 To achive this use rownum pseudocolumn with query, like SQL> SQL> select rownum, ename from emp; Output: 1 Scott 2 Millor 3 Jiyo 4 Smith Answer2 select rownum ,ename from emp; Output: 1 smith 2 john 3 king 4 scott
(Continued on next question...)
Other Job Interview Questions