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 count the no of records of a table without using
COUNT function?

Answer Posted / senthil kumar

Hi Ramaprasad 'select max(rownum) from emp; ' this is passible
but

declare
cursor c1(dpno emp.deptno%type)is select * from emp where
deptno=dpno;
i c1%rowtype;
begin
open c1(dpno);
loop
fetch c1 into i ;
exit when c1%notfound;
dbms_output.put_line(c1%rowcount);
end loop;
close c1;
end;

this is NOT Passible , because this one just show all records Not count it.......

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is transaction control language (tcl)?

1070


What is posting?

990


Is mariadb a nosql database?

1005


how to use regular expression in pattern match conditions? : Sql dba

963


What is the difference between distinct and unique in sql?

873


Is there a way to automate sql execution from the command-line, batch job or shell script?

918


What is sql in oracle?

1002


How many types of keys are there in sql?

986


what are set operators in sql? : Sql dba

983


How can we debug in PL/SQL?

1090


What is rank () in sql?

882


how many sql ddl commands are supported by 'mysql'? : Sql dba

955


Can we rollback truncate?

944


how to calculate expressions with sql statements? : Sql dba

980


What is form and report?

926