What is the purpose of coding FETCH in a SQL SELECT query? Explain with an example in Detail?
4 7959if 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 119325 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 6238if 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 8097i 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 7235a 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 7795in 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 8930
What is multi row fetch in db2?
What is explain plan in db2?
How do we specify index to include or not during bind process.
Which isolation level provides highest data integrity?
How to execute stored procedures?
What language is db2 written in?
What is ibm db2 database?
What is the result of open cursor statement?
What is the default page size of buffer pools?
What is buffer pool and list some of them?
What is host variable in db2 cobol?
Is db2 relational database?
Explain the contents that are a part of dclgen.
What is concurrency?
what are bind concepts in db2 cobol?