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 query image?

586


What is the disadvantage of User defind function?

1836


How to export data with a field delimiter?

582


Where are the settings stored for each instance in oracle?

630


can u send the sql dumps to sivakumarr1987@gmail.com plz help me

2600






What is Data Dictionary Cache in Oracle?

664


What privilege is needed for a user to connect to oracle server?

561


What is PL/SQL ?

1115


What do you know about normalization? Explain in detail?

499


What is different types of joins?

578


How to omit columns with default values in insert statement in oracle?

579


What is an oracle database table?

598


How to estimate disk space needed for an export job?

564


Explain drop constraint oracle?

593


How to enter a new row into a table interactively?

552