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
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 |
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 |
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 |
When Can you be sure that a query will return only one row?
in column y record abc.v abc.s xyz.j abc.h i wan only abc columns how to retrieve thi records
which SQL comment successfully removes uncommitted changes from a DB2 database A) rollback B) delete C) drop D) decommit
What is the difference between SYNONYM and ALIAS?
What is coalesce in db2?
What is index in db2?
What is plan in cobol db2?
How do you pull up a query which was previously saved in qmf?
What are the Isolation levels possible ?
What do you mean by cursor?
How connect db2 database to datastage?
What is dbrm? When it will be created?