How do u count no of rows in a table?

Answer Posted / bolearner

There are 2 ways used to find the row count of any table.

SELECT COUNT(*) FROM EMP;

SELECT TABLE_NAME, NUM_ROWS FROM USER_TABLES WHERE TABLE_NAME='EMP';

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is primary key? : Sql dba

512


What view means?

558


What is full join?

531


How do you select unique values in sql?

500


What are the parts of a sql statement?

555






What is materialized view in sql?

465


Do we need commit after truncate?

613


How many scalar data types are supported in pl/sql?

522


Can we use loop in sql?

537


What is the process of copying data from table a to table b?

598


what is the difference between $message and $$message? : Sql dba

547


how can we take a backup of a mysql table and how can we restore it. ? : Sql dba

519


What is difference between pls_integer and integer?

521


Which command is used to delete a trigger?

777


What is the advantage of index in sql?

539