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 |
How do I escape a reserved word in oracle?
What is the difference between alert log file and trace file ?
which is best institue to learn oracle 11i in ameerpet or maithrivanam or sr nagar please help
what diffrence between function and procedure?
What is data block in Oracle?
How can one skip any number of rows while loading the DB tables with SQL Loader? Similarly how can one skip any column?
How do we get field details of a table?
How to define an oracle cursor variable?
Why is oracle database so popular?
How do I manually create a database in oracle?
How to assign data of the deleted row to variables?
What is a user role in oracle?