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 is the difference between formal parameters and actual parameters?
How do I manually uninstall oracle client?
In the oracle version 9.3.0.5.0, what does each number shows?
Can you drop an index associated with a unique or primary key constraint?
Describe an oracle table?
How to write a query with a right outer join in oracle?
What is the usage of analyze command in oracle?
What does ROLLBACK do ?
Please send me Informatica 8.1 certification dumps, my mail id mona85gupta@gmail.com
What is an Index ?
The table has 3 columns 4 rows. The output is which column has least null values( A COL SHOULD BE THE OUTPUT) Write the query plz. A B C ================ 1 NULL 2 NULL 3 4 NULL 5 6 7 NULL NULL O/P C = 2 4 6
how to retrieve 1st and last row of table without using group functions??