how to find count rows in table without count function?

Answers were Sorted based on User's Feedback



how to find count rows in table without count function?..

Answer / mani

Select max(rownum) from table_name;

Is This Answer Correct ?    35 Yes 0 No

how to find count rows in table without count function?..

Answer / anil kumar

select sum(1) from table_name;

Is This Answer Correct ?    11 Yes 0 No

how to find count rows in table without count function?..

Answer / rajender varma

Select num-rows from user-tables where table-name='emp'

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Oracle General Interview Questions

how to retrive xml data for using sql query?

3 Answers   IBM, TCS,


what is data independence exactly? give an example

6 Answers  


What privilege is needed for a user to create indexes in oracle?

0 Answers  


Is there any function in oracle similar like group_concat of mysql?

0 Answers  


why can't we assign not null constraint as table level constraint

3 Answers   CTS, Wipro,






What is columnar storage what is the advantage?

0 Answers  


How many types of synonyms in Oracle?

0 Answers   MCN Solutions,


What are the limitations oracle database 10g xe?

0 Answers  


How do I spool to a csv formatted file using sqlplus?

0 Answers  


What are the differences between primary key and unique key?

0 Answers  


Create table Employee ( Employee_Id varchar2(8) Constraint emp_id_pk primary key, FirstName varchar2(50), LastName varchar2(50), DeptID Number(5) Constraint dept_id_fk Foreign Key(DeptId) References Department(DeptId) ) Error I am getting: Constraint specification are not allowed here

2 Answers  


what is the syntax of CREATE command?

8 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)