DB2 Interview Questions
Questions Answers Views Company eMail

How we create a tables in db2,what is the process/syntax to create a table with example plz?

2 14168

4. A DB2 application is bound with uncommitted Read isolation level.It issues a request that retrieves 20 rows out of 200000 in the table. Which of the following descrbes the rows that are locked as a result of this request? a. None of the rows are locked. B.The retrieved rows are locked. C.The last row of the result set is locked. D.The rows not previously updated by another application are locked.

Wipro,

3 7843

If we have 100 records in the PF, we deleted all the records then what is the Size of the PF?

2 5302

how to fetch multiple records without using cursor

HCL,

14 34915

what is datacom db?

CSC,

2 6743

db2 query I have one table with the following details. SNO SNAME DOJ ------ -------------------- ---------- 10 KRISH 2007-03-19 20 REDDY 2007-05-19 30 RRRRR 2007-05-19 40 BBBBB 2008-05-19 50 CCCCC 2009-05-19 60 JJJJJ 2009-05-19 70 JJJJJ 2004-05-19 i want the output in the following format:( no of students joined in each year(no nedd to consider about month and date) year count --------- ---------- 2004 1 2007 3 2008 1 2009 2

TCS,

9 11232

what will be the output of the below given query, if no matching records are found : (a.) 0 (b.) null (c.) error select Avg(salary) from TableA where Deptno = 'insurance'

Amdocs,

10 13420

Can we use select * statement in cobol program without giving field names ???

Zensar,

3 10352

why we create view.

5 8527

quary for 1> fetch last record 2> fetch in reverse order 3> fetch last 5 row 4> fetch second last record (their is no primary key) i think concept of count can be use for this in 4th

5 8688

I have a table which has thousand of records i want to fetch only record num 100 to record num 200. Write a query that satisfies this criteria.(Cant use any keys) Anyone please reply ASAP!

KNIT, Tech Mahindra,

17 22370

What are the functions in DB2?

Satyam,

3 7937

How to know the primary key of a table without defining the primary key in the table?

Satyam,

5 13171

can we drop column from a table

INDUS,

7 17933

How to get Top 10 Salaries from a Table

Accenture, HTC,

11 24346


Post New DB2 Questions

Un-Answered Questions { DB2 }

What is the difference between dbm cfg and db cfg file in db2 ?

989


How is the value function used?

591


What is bind plan?

600


What is release/acquire in bind?

641


What is meant by union and union all?

570






My sql statement select avg(salary) from emp yields inaccurate results. Why?

632


Hi Everyone... Under the Logical files, when am working on multiple rec format logical file, I have joined two pf's using the multiple record format logical file concept, but when i run queried the LF only the first mentioned pf records are reflecting and I am not able to see any of the field records specified under the second pf. Kindly let me know whats the reason behind this. Below is the str of LF., R rec PFILE(LOGICAA) CUSTNO CUSTNAME BILL K CUSTNO R rec1 PFILE(LOGICAA1) CUSTNO ADD K CUSTNO .....

1879


How many types of page locks can be held in db2?

581


What are db2 objects?

630


What is coalesce in db2?

672


can we view the access paths created by dbrm ? how ? thx

6211


How to fetch the last row from the table in SQL (db2)?

1020


What is the maximum size of a char data type in db2?

578


What is null indicator in cobol db2?

571


Explain the contention situations caused by locks?

580