query to just fetch first matching row and stop execution.
once one matching row is found ..no more records should be checked.. if the first record is matching.. the query must stop
Answer Posted / romeu viegas
Select ...
FROM ...
WHERE ...
FETCH FIRST 1 ROW ONLY
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is db2 plan table?
What do you mean by cursor?
What are the various isolation levels possible?
What is the physical storage length of the data types: date, time, timestamp in the db2 database?
What are packages in db2?
How to fetch the last row from the table in SQL (db2)?
What is cursor with hold option in db2?
How can the firstname and the lastname from the emp table be concatenated to generate complete names?
What is the use of db2?
What is difference between rollback and commit?
What is cascading rollback?
Who uses db2?
How do I copy a table in db2?
How does coalesce work?
How can deadlocks be resolved?