With out using count() function. How to the find total
number of rows in a table?

Answers were Sorted based on User's Feedback



With out using count() function. How to the find total number of rows in a table?..

Answer / subbarayulu neela

select max(rownum) from table-name;

Here rownum is a keyword which can gives unique number for
individual rows.

Is This Answer Correct ?    35 Yes 2 No

With out using count() function. How to the find total number of rows in a table?..

Answer / saurabh

select sum(1) from table-name

Is This Answer Correct ?    26 Yes 4 No

With out using count() function. How to the find total number of rows in a table?..

Answer / manjunath u

rownum is one of the option, can deal with sequence also

Is This Answer Correct ?    4 Yes 2 No

With out using count() function. How to the find total number of rows in a table?..

Answer / ramaraju

select max(rownum) from table_name;

Is This Answer Correct ?    0 Yes 0 No

With out using count() function. How to the find total number of rows in a table?..

Answer / balaji g

please help me query answare

Is This Answer Correct ?    7 Yes 9 No

With out using count() function. How to the find total number of rows in a table?..

Answer / ramachandran

select rownum from tablename;

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More SQL PLSQL Interview Questions

Is inner join faster than left join?

0 Answers  


Why stored procedure is faster than query?

0 Answers  


Can we perform dml on view?

0 Answers  


What are the advantages of pl sql over sql?

0 Answers  


Which command is used to delete a trigger?

0 Answers  






What is difference between primary and secondary key?

0 Answers  


what is called after appearing where clause

3 Answers  


What is a REF CURSOR? Compare strong and week ref cursor types.

6 Answers  


What is the Subquery?

4 Answers  


in oracle 10g sw after compiling procedure how to pass parameter values ,if we (v_empid out number)how to give empid after successful compilation program.This site exact suitable for 10g with respect to question & answer same format , im trying sql browser & sql command prompt using exec procedure name & respective parameters.

0 Answers  


What is a stored procedure in sql with example?

0 Answers  


how do you know the version of your mysql server? : Sql dba

0 Answers  


Categories