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

How many types of tables are there?

691


Describe different types of general function used in sql?

727


What is sql query limit?

699


What is cursor and its types?

716


what is the difference between cluster and non cluster index? : Sql dba

730






What is date functions?

729


Do stored procedures prevent sql injection?

725


Define tables and fields in a database

832


Can we commit in trigger?

699


What is sql clause?

739


What is the difference between join and natural join?

653


what tools available for managing mysql server? : Sql dba

745


What is normalization in a database?

847


Which function is used to return remainder in a division operator in sql?

784


Can we join same table in sql?

736