how will you retrieve first record in table



how will you retrieve first record in table..

Answer / saravana

select empname,empno from tablename order by empno fetch
first row only;

Is This Answer Correct ?    11 Yes 0 No

Post New Answer

More DB2 Interview Questions

What is copy pending and check pending in db2?

0 Answers  


wht is d/f between union and joins ?

2 Answers  


What is iseries database?

0 Answers  


How many sub queries can you combine together ?

4 Answers   IBM,


in my table i will update only 100 record among 1000 records i need to display recently updated record'.....can u tell me where those records are stored how can i display those records...?if there is any sql query pls let me know....?

3 Answers   Infosys,






What is nvl in db2?

0 Answers  


Suppose we are doing transaction in a table and abend happened in between. Suppose i have completed the transaction upto X rows and I want to start the transaction again where the abend happened. I don't want to do the transaction from the first record. Then what i have to do.

9 Answers   Cap Gemini,


What is runstats db2?

0 Answers  


what is contained in the DB2 node lock file? A) data base names B) data base users names C) license keys D) server names

5 Answers   Accenture,


How to find the maximum value in a column in the db2 database?

0 Answers  


how many partitions are possible in partitioned tablespace? dont say 1-64. a)240 b)256 c)512 d)none

8 Answers   Amdocs, HeadStrong,


What is explain in db2?

0 Answers  


Categories