Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How do you filter out the rows retrieved from a Db2 table ?



How do you filter out the rows retrieved from a Db2 table ?..

Answer / s

use the WHERE Clause

Is This Answer Correct ?    8 Yes 0 No

Post New Answer

More DB2 Interview Questions

how to resolve -818 error. how to see timestamp token in load module and plan

4 Answers   IBM,


How can the firstname and the lastname from the emp table be concatenated to generate complete names?

0 Answers  


Give some example of statistics collected during RUNSTATS?

1 Answers  


What is FREEPAGE and PCTFREE in TABLESPACE creation?

1 Answers  


In which column of which DB2 catalog would you find the length of the rows for all tables?

2 Answers  


Which command is used to remove all rows from a table?

0 Answers  


Highlight all the advantages that are attached to a package.

0 Answers  


Explain db2.

0 Answers  


explain about index with examples

2 Answers   Syntel,


How to compare data between two tables in db2?

0 Answers  


in 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 Answers   iGate,


In a Cobol-DB2 program, I am fetching rows from 4 tables using cursor and then based on the a field present in that table, It processes the information accordingly..for example stat-c is one digit field..if stat-c is 'D' then the a row is deleted from table and written those details in to a file. If the stat-c is 'U' then a row is updated (hardcoded what to update)in a table and written those details in to a file. If the stat-c is 'I' then a row is inserted in a table and written those details in to two files. The issue is i have to include the intermediate commits. When an abend occurs, due to commit statement db2 tables will be saved, But there will be lose of file contents. When we resubmitting the job associated with this program there will be insert ,update and delete anomolies to avoid that what measures could be taken?. The intermediate commit is nothing but issuing commit after massive inserts, updates and deletes(sum of 500actions)

2 Answers  


Categories