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

What is cursor in dbms?

595


Hi Everyone... Under the Logical files, when am working on multiple rec format logical file, I have joined two pf's using the multiple record format logical file concept, but when i run queried the LF only the first mentioned pf records are reflecting and I am not able to see any of the field records specified under the second pf. Kindly let me know whats the reason behind this. Below is the str of LF., R rec PFILE(LOGICAA) CUSTNO CUSTNAME BILL K CUSTNO R rec1 PFILE(LOGICAA1) CUSTNO ADD K CUSTNO .....

1899


How connect db2 database to datastage?

765


Is db2 a mainframe?

593


What is the physical storage length of date data type?

732






How to connect to db2 database from windows command line?

564


How to access db2 tables in mainframe?

615


What are the contents of dclgen?

661


How to test SQL -911 error while developing COB-DB2 program

6721


How do I delete a column in db2?

680


What is the difference between nvl and coalesce?

604


What is the difference between spufi and qmf?

641


What is collection in db2 bind?

579


How can you classify the locks in db2?

636


What are the uses of db2 optimizer?

819