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

In a distributed database system, can we execute two queries simultaneously?

0 Answers  


ename empno deptno amar 1 10 akbar 2 20 anthonny 3 30 jonathan 4 40 write a procedure to dispaly the column values ina row separated by a deleimiter eg - input - select ename from emp '|' output - amar|akbar|anthony|jonathan input - select empno from emp '@' o/p - 1@2@3@4 input - select deptno from emp '/' o/p - 10/20/30/40 Pls answer this questn.

2 Answers  


Give the structure of the function ?

2 Answers  


How do I restart sql?

0 Answers  


What are the popular database management systems in the it industry?

0 Answers  






what is a composite key ? : Sql dba

0 Answers  


how would you enter characters as hex numbers? : Sql dba

0 Answers  


What is sql and db2?

0 Answers  


what is a primary key? : Sql dba

0 Answers  


Can we insert in view in sql?

0 Answers  


What is the usage of NVL?

7 Answers   Infosys, Micro Infotek,


How can I tell if sql is running?

0 Answers  


Categories