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 to write date and time interval literals in oracle?
Can we store pictures in the database and if so, how it can be done?
What happens if recursive calls get out of control?
what is candidate key & super key
Explain the importance of .pll extension in oracle?
How to retrieve the count of updated rows?
How to omit columns with default values in insert statement in oracle?
5. Display full details for the creditor/s who has received the single largest payment. Do not use a table join or set operator anywhere in your query.
What is an oracle user role?
Assuming that you are an End User How to find that in the payment Batch some of the Invoice was Missing To pay How to find That??
Calculate difference between 2 date / times in oracle sql?
Explain coalesce function?