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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is innodb buffer pool?

575


What is ibm db2 client?

530


I understand Join always perform better than subqueries. Then what is the advantage/use of Subqueries/correlated subqueries etc.,in DB2 programming.Please explain.

1666


What is the difference between cursor stability and repeatable read isolation levels?

694


What is host variable?

605






What is null value in db2?

579


What is data manager?

616


What are the prerogatives?

627


How do we specify index to include or not during bind process.

1682


Is it possible to alter a table – for example adding a column, when another user is accessing or updating some columns?

640


Mention some fields that are a part of sqlca.

610


Is schema the same as database?

642


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

600


What is the difference between "db2ilist" and "db2 get instance" commands in DB2 Database Server?

724


Can you tell me how can you find out the # of rows updated after an update statement?

621