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...


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 release/acquire in bind?

0 Answers  


For Null indicator we have 3 values 0,-1,-2. 0->Not nulll -1->Null -2->Value truncated If ther is any possibility to have any positive value other than 0 in Null indicator.If it is so then when we will get and what is the value?

1 Answers   BNP Paribas,


What DB2 Catalog column tell you when an index needs table reorganized ?

1 Answers  


How can you split a table in to exactly half?

7 Answers   HSBC,


I have a table(product),It contain fields(productname,cost). I want to retrieve the product name ,which cost is second maximum in the table?

10 Answers   Fidelity,


What is host variable in db2 cobol?

0 Answers  


WHAT IS MEANT BY COMMIT COMMAND?

7 Answers   Wipro,


How does DB2 store NULL physically?

2 Answers  


What is the format (internal layout) of ?TIMESTAMP??

1 Answers  


What's the Maximum Length of SQLCA and what's the content of SQLCABC?

2 Answers  


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

0 Answers  


What is correlation names?

1 Answers  


Categories