if there is a table with huge number of records and if i
want to extract only first 3 records from the table, what
query i have to provide to retreive first 3 records

Answer Posted / hemachandar

select * from table_name
fetch first 3 rows only;

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is view db2?

835


List out the buffer pools in db2

821


What is cursor with hold option in db2?

804


What does db2 plan contain?

754


What is a db2 collection?

797


Explain about cursor stability?

784


What is meant by dclgen?

851


Give a brief description of db2 isolation levels?

784


What is cursor in dbms?

826


How can deadlocks be resolved?

727


What is db2 optimizer?

986


What is dclgen in db2?

879


Following a db2 update statement, what is the quickest way to compute the total number of updated rows?

819


What's The Percentage Free Space ?

960


How to view db2 table structure?

796