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 / parthasarathi
select * from
(select * from emp a where rowid<(select max(rowid) from
emp b where a.empno=b.empno) x
where rownum=1
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is innodb buffer pool?
What db2 400?
Why cursor is used in db2?
What is package in cobol db2?
What are foreign keys in db2?
What is the role of data manager in the db2 database?
Is it possible to create an Instance in DB2 using DB2 Control Center ?
Explain various types of locks in db2?
Explain what are the various isolation levels possible?
What is a bind card?
What is ibm db2 database?
How do I change the column size in db2?
Explain correlated sub-queries.
How to check table size in db2 sap?
What is the function of logging in the db2 database?