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 are db2 tables?
ther r 2 tables OTTABLE & SALTABLE, add the otamt from OTTABLE to empsal of SALTABLE if eid is matched else add the unmatched from OTTABLE to SALTABLE
Are view updateable?
What is db2?
What is multi row fetch in db2?
How can we retrieve the total number of records in RPG & CLLE?
What do you mean by cursor?
What is host variable?
What are concurrency issues?
Explain correlated sub-queries.
What is db2 bind process?
If I have a view which is a join of two or more tables, can this view be updateable?
What is the clustering index in the db2 database?
How do I add a column to a table in db2?
What is precompiler in db2?