What is the purpose of coding FETCH in a SQL SELECT query? Explain with an example in Detail?
4 7972if 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 119485 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 6244if 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 8103i 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 7245a 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 7797in 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 8941
What is the physical storage length of the data types date, time, and timestamp?
What's The Percentage Free Space ?
What is meant by dclgen?
Explain about mirror activator disk mirroring?
Where can you declare a cursor in a cobol-db2 program?
What is db2 bind process?
What is the use of value function?
in my project..TEST is db2 8.1 version In PROD it is 7.1 if i do REORG in TEST.. can I use the same REORG jcl with out modification in PROD region (this is DB2 8.1 )? if not, what modification i need to do in my REORG control card?
can all users have the privilage to use the sql statement select * (dml)?
What is difference between rollback and commit?
What is the usage of open cursor command?
What types of tables are there in the db2 database?
What is the latest version of ibm db2?
How to create backup table in db2?
What are the different types of base tables?