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 |
DBMS vs. RDBMS
It's Urgent? How to IMPORT .xls & .txt file into ORACLE?
What is currency type in database ?
What is integrity and what is constraint??Explain with example
How many types of synonyms in Oracle?
Explain an index segment?
how to produce numbers from 1 to 10 using dual table
What is an Index ? How it is implemented in Oracle Database ?
t1 col1 col2 nishi 5000 lucky 6700 akash 7000 i want that a query that when i insert 7000 it will show me data already present and data will not insert. if data is not present it will insert.
What is the difference between a vector and an Array? (Java)
What are the components of Logical database structure of ORACLE database?
What are the different types of failures that occur in Oracle database?