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

What are the types of functions in sql?

0 Answers  


how to retrieve the top 3 salaries of the table using rownum

31 Answers   Oracle,


Can you have multiple SPs with the same name on a database?

2 Answers   CGI, Quest,


Can we use views in stored procedure?

0 Answers  


What are some emotional triggers?

0 Answers  






What is delete command in sql?

0 Answers  


What is the command used to fetch the first 5 characters of a string?

0 Answers  


Define overloaded procedure?

0 Answers  


What is Collation Sensitivity ? What are the various type ?

0 Answers  


Does db2 use sql?

0 Answers  


How do you delete data from a table?

0 Answers  


What is user define exception and example

1 Answers   HP, KP,


Categories