Do we need cursor for Count(*)?

Answer Posted / nak

No,Count(*) will give u the number of record in a table.

Ex: select Count(*) from EMP table where EMPNAME='sunil'

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is runstats and reorg in db2?

800


How does cobol compile db2 program?

610


Which component is responsible for processing sql statements and selecting access paths?

671


What is consistency token in db2?

644


If the cursor is kept open followed the issuing of commit, what is the procedure to leave the cursor that way?

706






What are union and union all?

541


On which levels locks can be applied?

663


What is bind in db2?

608


What is the syntax for seeing the columns and data types of a table in the db2 database?

578


What are iseries servers?

569


What are the prerogatives?

617


Can we insert update delete in view?

579


Mention the location where the output received from explain statement is stored.

632


Is db2 a programming language?

608


What is db2 and what is the use of db2 optimizer?

657