without using count(*) and rownum how can we count total
record in a table
Answers were Sorted based on User's Feedback
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 |
Answer / rajesh
SQL> SELECT TABLE_NAME, NUM_ROWS FROM USER_TABLES WHERE TABLE_NAME='EMP';
TABLE_NAME NUM_ROWS
------------------------------ ----------
EMP 14
| Is This Answer Correct ? | 3 Yes | 0 No |
What are the data types in oracle?
how to use sequence and what use of sequence cache
What is Normalization ?
55 Answers ACS, Genpact, Graphix Solution, IBM, Keane India Ltd, TCS, Vault,
what are the advantages of running a database in archive log mode?
How remove data files before opening a database?
write a query to count number of alphabets in given string for example "APPLE" write a query to generate sequence from 50 to 100 write a query to display in single string "ABCD,EFGH,IJKL,PQRS"
What should be the return type for a cursor variable.Can we use a scalar data type as return type?
what is load balancing and what u have used to do this?(sql loader)
What are Clusters ?
can anyody please send me the dump for Oracle 10g certifications for DBA path?
Why does for update in oracle 8 cause an ora-01002 error?
What are triggers in oracle?