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


how to check the table is empty or not?

Answers were Sorted based on User's Feedback



how to check the table is empty or not?..

Answer / vaneesh khurana

After executing the first query if you find SQLCODE = 100,
then the table is empty.

Is This Answer Correct ?    6 Yes 1 No

how to check the table is empty or not?..

Answer / sriram


EXEC-SQL
SELECT 1
INTO :X
FROM TAB1
END-EXEC
X is defined as s9(4) comp value zeroes
So, if there is a row in the table (i.e. the table is not
empty), 1 gets moved to variable X.
Did not have resources to run the query and validate ,



Please let me know if I am wrong

Is This Answer Correct ?    0 Yes 0 No

how to check the table is empty or not?..

Answer / sriram


EXEC-SQL
SELECT 1
INTO :X
FROM TAB1
END-EXEC
X is defined as s9(4) comp value zeroes
So, if there is a row in the table (i.e. the table is not
empty), 1 gets moved to variable X.
Did not have resources to run the query and validate ,



Please let me know if I am wrong

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More DB2 Interview Questions

i have a db2 variable how do u declare tht into working storage section ?

1 Answers   TCS,


B37 abend during spufi?

0 Answers   IBM,


What is the use of db2 optimizer?

0 Answers  


What is a Resource Control Table(RCT)? Describe its characteristics.

3 Answers  


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

0 Answers  


What are db2 objects?

0 Answers  


What is the SQL Communications Area and what are some of its key fields?

1 Answers  


What is plan in cobol db2?

0 Answers  


What is the difference between static and dynamic SQL?

1 Answers  


What are the different methods of accessing db2 from tso? How is the connection established between TSO & DB2?

3 Answers   Tech Mahindra,


in a table consist of 1000 records among that i was updated 145 record how could i know that ..list of recently updated record's and where could i see those updated record's....pls help me out....

4 Answers   Infosys,


How will you return the number of records in table?

0 Answers  


Categories