If there is no row in Emp table with Ename as Raghava and
you run the below queries in SPUFI.

1.select Ename from EMP wher Ename = 'raghava'
2.Select count(*) from EMP where Ename = 'raghava'

What is SQLCODE shown up in SPUFI

Answers were Sorted based on User's Feedback



If there is no row in Emp table with Ename as Raghava and you run the below queries in SPUFI. 1..

Answer / guest

For 1st query the sql code will +100
for second query the count is zero and sql code is 0

Is This Answer Correct ?    30 Yes 3 No

If there is no row in Emp table with Ename as Raghava and you run the below queries in SPUFI. 1..

Answer / krishna

2)when using count(*) it give always sql code 0 only
1)depending upone the rows if rows are their give 0
if not give 100

Is This Answer Correct ?    9 Yes 0 No

If there is no row in Emp table with Ename as Raghava and you run the below queries in SPUFI. 1..

Answer / raghavan.jcs

In both case, It will show SQLCODE +100.
As No row found condition is satisfied here

Is This Answer Correct ?    10 Yes 12 No

If there is no row in Emp table with Ename as Raghava and you run the below queries in SPUFI. 1..

Answer / ekalavya

In Both the cases it's ZERO.

Is This Answer Correct ?    1 Yes 15 No

Post New Answer

More DB2 Interview Questions

What is the FREE command?

1 Answers  


How can record locking be achieved in those DB2 versions which do not support it?

0 Answers  


What are the Isolation levels possible ?

5 Answers  


max number of columns in a db2 table?

6 Answers  


AGGREGATE function support by DB2. A) SUM & AVG B) SUM, MIN & AVG C) SUM, MAX, AVG , MIN &COUNT D) NONE

2 Answers   Accenture,






what is the use of cursors?

3 Answers   iGate,


What are the disadvantages of PAGE level lock?

3 Answers  


Which component is responsible for db2 startup and shutdown?

0 Answers  


What is consistency token in db2?

0 Answers  


What do you do to keep the cursor from closing after a commit?

1 Answers  


Which components manage deadlocks in db2?

0 Answers  


What is the syntax for FETCH in DB2 ?

0 Answers   MCN Solutions,


Categories