What is the purpose of coding FETCH in a SQL SELECT query? Explain with an example in Detail?
4 6451if suppose i am having an ACCOUNT table with 3 coloumns ACC. NO,ACC. NAME,ACC. AMOUNT . If a unique index is also defined on ACC.NO and ACC.NAME then write a query to retrieve account holders records who have more than 1 ACC.
8 92925 rows are inserted to a DB2 Table. Next 3 of those are updated, then a rollback is issued. What would happen when the rollback is issued?
2 5206if there is a table with huge number of records and if i want to extract only first 3 records from the table, what query i have to provide to retreive first 3 records
UST,
4 6544i hav created a program and moved to production but failed to create the table which is been used in the program. the program shows error as soon as it is moved or installed in production or shows error during its runtime. what is the sqlcode for this error
UST,
3 5941a cursor normally gets closed once we provide a commit . If u try to close the same cursor with close cursor command later after providing the commit will there be any sql-error.
3 6331in the CURSOR declare statement, if i am using an where clause and trying to compare the value with a host-varialble. EXEC SQL DECLARE C1 CURSOR FOR SELECT DEPTNO, DEPTNAME, MGRNO FROM DEPARTMENT WHERE ADMRDEPT = :ADM-DEPT Where would i need to provide value to this host-variable in the where clause. how could i pass value to this host-variable to check it.
2 7586
What do you mean by cursor?
What does runstats do in db2?
Why cursor is used in db2?
How to compare data between two tables in db2?
What is the physical storage length of the data types: date, time, timestamp in the db2 database?
What is copy pending status in db2?
What is difference between alias and synonym in db2?
What is innodb buffer pool?
What's The Error Code For Unique Index Voilation?
What is phantom read in db2?
How to resolve deadlock issue
What are packages in db2?
Why do we bind in db2?
What is cursor stability in db2?
Differentiate between cs and rr isolation levels? Where do you specify them?