select 100 records from million records ?
Answers were Sorted based on User's Feedback
Answer / prachi
SELECT * FROM TABLENAME
FETCH FIRST 100 ROWS ONLY;
This will fetch 1st 100 records
| Is This Answer Correct ? | 20 Yes | 0 No |
Answer / ankit.:-)
if u want to fetch first 100 go for
select * from tablename fetch only 100 rows;
this will select only 100
| Is This Answer Correct ? | 5 Yes | 5 No |
Suppose we have a query for update update table1 set col1 = 'val1' where col2=(select .... from ...) suppose the subquery does not return any record, what will happen to update?
I understand Join always perform better than subqueries. Then what is the advantage/use of Subqueries/correlated subqueries etc.,in DB2 programming.Please explain.
On which levels locks can be applied?
What is a Cartesian product?
Explain various types of locks in db2?
What does the RUNSTATS Utility do?
What is the picture clause of null indicator variable?
how to get duplicate records from tables?write qurey for this?
Comment whether dclgen is mandatorily used. If not, then what is the point of using it?
What is auditing?
db2 restart logic ?
While unloading huge amount of data from table. Suddenly job failed some error. Imagine 1M data unloading, In that 90% data unloaded only 10% left, So if want to unload the rest 10% what needs to be done? Whether do i need to start from top or anything ?