What is the purpose of coding FETCH in a SQL SELECT query? Explain with an example in Detail?
4 7973if 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 119515 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 6245if 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 8112i 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 7247a 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 7803in 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 8943
What is the difference between "db2ilist" and "db2 get instance" commands in DB2 Database Server?
What is declare cursor?
What is reorg and runstats in db2?
What is the use of reorg in db2?
What is db2 plan table?
What are types of indexes?
What is the use of predicate?
Explain the benefits you can get from mainframe connect?
In an sql table that is embedded, what is the procedure to retrieve rows that are part of a db2 table?
What is the role of data manager in the db2 database?
What is the physical storage length of date data type?
What is role in db2?
Can we delete records from view?
How do you stop a db2 database in linux?
How do I import a csv file into db2?