What is the purpose of coding FETCH in a SQL SELECT query? Explain with an example in Detail?
4 8111if 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 121425 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 6340if 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 8226i 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 7359a 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 7944in 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 9060
What is concurrency?
What is the physical storage length of date data type?
What is a trigger in the db2 database?
What is coalesce in db2?
How to check sequence on a table in db2?
Is it possible to create an Instance in DB2 using DB2 Control Center ?
What is the function of logging in the db2 database?
What is copy pending status in db2?
Explain how can you do the explain of a dynamic sql statement?
What is the connection string to connect to the DB2 Database ?
What does runstats do in db2?
Give a brief description of db2 isolation levels?
What is multi row fetch in db2?
What are concurrency issues?
What is db2 stogroup?