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
Answers were Sorted based on User's Feedback
Answer / romeu viegas
Select ...
FROM ...
WHERE ...
FETCH FIRST 1 ROW ONLY
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / 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 |
What are PACKAGES ?
Name some fields from SQLCA.
Can SQL statements/queries be included in a copybook?
What is ACQUIRE/RELEASE in BIND?
How to design maps
what are stage one indexable predicates?
What is the latest version of ibm db2?
What is the maximum size of varchar data type in db2?
Explain about rct in db2?
What is rebind in db2?
How many databases can be created inside an instance in db2 ?
Hi, i would like to start a new carrier in DB2 DBA.Which and what all step should i have to take..?