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 connection pooling in oracle?
What is save point in oracle database?
How to insert a new row into a table in oracle?
is there a tool to trace queries, like profiler for sql server?
What is using clause and give example?
Can an Integrity Constraint be enforced on a table if some existing table data does not satisfy the constraint ?
11. Display the client number and name and the client number and name of the person who referred that client.
How can we find out the current date and time in oracle?
Can you have more than one content canvas view attached with a window ?
What is a snapshot in oracle database?
what are the default admin accounts in Oracle 10g ?
19. Display all clients whose name begins with the letter J or contains the letter M anywhere or contains E as the third letter.