Shall i use this query to retrieve first 4 records,
Select empno, sal from emptbl where empno < 5. like this can
we fetch first 100 records?
Answer Posted / mr. cooooool
Hi.............
No. you cann't use this.
this query will display records less than 5.
not to for first 4 records.
For exm.
Suppose i have duplicate records like
Empno
1
2
1
1
3
4
then it display all the above records.
b'coz these all r less than 5.
Thanks.
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
What are db2 objects?
What is phantom read in db2?
Is db2 a programming language?
What is difference between alias and synonym in db2?
Cursors can be declared in both working-storage & procedure division, agreed. But is there any difference? If could you please suggest what is the difference
What's The Error Code For Unique Index Voilation?
What is a db2 cursor?
What is the cobol picture clause of the db2 data types date, time, timestamp?
Mention the way of highlighting as well as putting a cursor to use in a cobol program.
What are iseries servers?
What is check constraint. Explain with example.
What is temporal table in db2?
How to fetch the last row from the table in SQL (db2)?
Highlight all the advantages that are attached to a package.
Mention data types used in db2 ?