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

What is backup in Oracle?

949


How to select some rows from a table in oracle?

1002


Which is better Oracle or MS SQL? Why?

4819


What are the different types of database objects?

990


What privilege is needed for a user to delete rows from tables in another schema?

1017


How to best split csv strings in oracle 9i?

983


What would you do with an in-doubt distributed transaction?

1913


Does oracle partitioning improve performance?

942


Hi Can any one tell me what are the API's used in requisition import.

1877


How to declare a local variable?

1048


What is set operator oracle?

920


What is columnar storage what is the advantage?

985


How to drop a stored procedure in oracle?

995


How to get a create statement for an existing table?

905


How to bring a tablespace online?

992