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 maximum number of indexes i can create for a table? What happens if i create indexes for all the columns of a table? Will it slow down the speed of retrieval
How do I manually uninstall oracle client?
In the oracle version 9.3.0.5.0, what does each number shows?
what is cartesian product?
How to invoke the data pump export utility?
What is a deadlock ? Explain .
How to create a single index for multiple columns?
22. Display the order number, number of lines in the order, total number of items and total value for all orders that have a total value greater than $100
Can you drop an index associated with a unique or primary key constraint?
how to make an oracle object
How to Identify the previously inserted/updated records in already populated table.
Explain drop constraint oracle?