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 are the benefits of ordbms?

1049


Differentiate between translate and replace?

1057


How to delete multiple rows from a table in oracle?

1026


Differentiate between pre-select and pre-query?

1066


What is SQL access advisor in Oracle?

1156


How to start instance with a minimal initialization parameter file?

1002


How to rename a tablespace in oracle?

1049


Give the various rollback segment states.

1011


What is oracle sid?

904


How to create a single index for multiple columns?

992


What is a read only transaction in oracle?

988


Explain the characteristics of oracle dba?

1082


What is the cache hit ratio, what impact does it have on performance of an Oracle database and what is involved in tuning it?

2093


definition of cluster and non-clustered index?

2984


Explain an index segment?

1068