Do we need cursor for Count(*)?

Answer Posted / yaswanth

we will use cursors when we have situation like the query
returning multiple rows but in this case
select Count(*) from EMP table where EMPNAME='some' will
return only one row, i.e how many rows it found with
EMPNAME='some' eg:3 or 4 or 5 ... so there is no concept of
cursor here

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1674


What is nvl in db2?

626


If I have a view which is a join of two or more tables, can this view be updateable?

692


How do you simulate the explain of an embedded sql statement in spufi/qmf?

634


What is a page in db2?

610






What is alias in db2?

570


How does a cursor work?

556


What is syscat in db2?

574


What is null indicator in db2?

602


List out the data types available.

704


What is cloudant database?

641


Explain about rct.

650


What is temporal table in db2?

603


How to restart a DB2 program?

1364


What does db2 blu stand for?

660