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...

without using count(*) and rownum how can we count total
record in a table

Answer Posted / vignesh lakshmirajan

simple..!!! Findout the primary key of the table..

then..

select count(primary_key_column) from table;

thats all; becos count vil work with non-null values.

primary key cant b null..
so.. v can use count on primary key...

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

21. Using a set operator, display the client number of all clients who have ever placed an order and whose whose name does not contain the string Sm.

2103


Give the various exception types.

991


What is an external table?

1014


How i can handle exception in large code like 1000 line without distrubing the code or without exception handler sction?

3197


How to create lov dynamically at runtime & attach to text field?

1185


Why does for update in oracle 8 cause an ora-01002 error?

1001


How do I decide when to use right joins/left joins or inner joins or how to determine which table is on which side?

1018


Give the various rollback segment states.

1052


Database is hung. Old and new user connections alike hang on impact. What do you do? Your SYS SQLPLUS session IS able to connect.

2157


What is oracle update statement with inner join ?

1057


How to open and close an explicit cursor in oracle?

1058


State some uses of redo log files?

1001


how to convert .db (extention) database file into .dmp (extention ) for oracle database ?

2555


Is there any way to find out when one specific table/view/M-view is used last time. i.e. when one specific object is used in any SELECT statement.

1349


How to define a record variable to store a table row?

1058