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 do you mean by “trigger” in sql?

1036


What is difference between stored procedure and trigger?

1089


How can use stored procedures in sql?

1102


Mention what does plvtab enables you to do when you showthe contents of pl/sql tables?

1127


Which sql statement is used to delete data from a database?

919


How many subqueries can be nested in a statement?

951


What is a dirty read sql?

1070


Differences between Oracle 9i and 10g (Probably in terms of SQL and PL/SQL)?

3536


List the different type of joins?

1031


What is the difference between partition and index?

949


What are the types of triggers in sql?

1043


what is the difference between clustered and non clustered index in sql? : Sql dba

1079


Explain autonomous transaction.

1121


Mention what are different methods to trace the pl/sql code?

1146


What is fmtonly in sql?

1032