What is the result of this query ?
SELECT * FROM EMP WHERE ROWNUM = 1
Answers were Sorted based on User's Feedback
Answer / rajesh
It gives all the details of the Employee who is in the first
row of the table .
Regards
Rajesh
baburajeshd@gmail.com
| Is This Answer Correct ? | 58 Yes | 8 No |
Answer / kumar
THE CONDITION ROWNUM = 1 EVALUATE TRUE(i.e 1=1) HENCE
IT DISPLAY THE FIRST RECORD FROM THE EMP TABLE.
| Is This Answer Correct ? | 28 Yes | 3 No |
It will display only the first record in the table
| Is This Answer Correct ? | 20 Yes | 4 No |
Answer / apps
ROWNUM is generally used in >=, <=, <, >. But there is
exception, you can use it = also but only with 1 as
ROWNUM=1, it will display first record in table. If you use
ROWNUM=10…. Or any number other than 1 then it will not
display any records.
| Is This Answer Correct ? | 15 Yes | 0 No |
Answer / ravi
Puople who don't have knowledge or don't know concept,
don't post the answers blintly. please...
I don't know why some stupid guys/girls are giving wrong
answers?
| Is This Answer Correct ? | 12 Yes | 5 No |
Answer / vidyasagar
This is the actual answer
SQL> select * from emp where rownum=1;
EMPNO ENAME JOB MGR HIREDATE
SAL COMM DEPTNO
--------- ---------- --------- --------- --------- ---------
--------- ---------
123 SATYA 234
2000 40
got it
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / smruti
Guys,
Posting an answer is a nice effort, that means you are
trying to help other people overcome the trouble ahead.
But be cautious when posting an answer in public. Posting
wrong answers can be a sin.
Please be silent if you dont know atleast. After a damn
strong and correct answer from someone called Apps why u
people don't verify with urself. Archana don't show off
please.
SQL> SELECT * FROM EMP WHERE ROWNUM = 1;
EMPNO ENAME
---------- ----------------------------------------
1 SMRUTI
SQL> SELECT * FROM EMP WHERE ROWNUM = 22;
no rows selected
| Is This Answer Correct ? | 5 Yes | 1 No |
Can you explain the difference between architecture followed in 10g & 11g?
hi all.i am in need of some sample codes for oracle apps manufacturing interfaces.If any of u have,plz send it to me . Thank you.
can we write sql statement in Format trigger?
How to compile the Forms & Reports in Linux Apps Server which are created in WindowsXP client?
I want to print output in portrait style?where i have to change the settings?
maximum how many parameters we can pass through pl/sql stored procedure to oracle apps?how many mandatory parameters we can pass through pl/sql program to oracle apps11i?
What is multoorg and what is it's level or structure
What is count(*) from po_vendors(any table)?
what is pl/sql table and pl/sql records? what is the use of that?
P_CONC_REQUEST_ID mandatory in oracle reports to run in oracle applications or not ( I am not talking about running in report builder or D2k ) or not ?
9 Answers CSC, IBM, KPIT, Oracle,
what is the back ground program run while transferring data from OM to AR?
what are the different calculation columns available in reports?