sql query to get zero records from a table

Answers were Sorted based on User's Feedback



sql query to get zero records from a table..

Answer / kishor

Select * from table where 1 = 2

Is This Answer Correct ?    29 Yes 2 No

sql query to get zero records from a table..

Answer / biswajit ghosh

SELECT * from TABLE
WHERE 1 = 2;

Is This Answer Correct ?    8 Yes 1 No

sql query to get zero records from a table..

Answer / vawani sankar naik

SELECT * FROM TABLE WHERE 1=2;

Is This Answer Correct ?    7 Yes 0 No

sql query to get zero records from a table..

Answer / nathan

Select count(*) from emp where 1 = 2

Is This Answer Correct ?    0 Yes 0 No

sql query to get zero records from a table..

Answer / nanne

Your Question is not clear..i believe that your expecting retrieve the tables which are having zero rows in the database.

Yes...we can retrieve the zero rows tables from DB

Select * from dba_tables
where num_rows = 0;

Regards,
Nanne

Is This Answer Correct ?    0 Yes 0 No

sql query to get zero records from a table..

Answer / vipul.solanki

select * from menu_master where rownum <1;

Is This Answer Correct ?    1 Yes 2 No

sql query to get zero records from a table..

Answer / neha_gupta

select null from emp

Is This Answer Correct ?    1 Yes 10 No

Post New Answer

More Oracle General Interview Questions

Explain oracle instance.

0 Answers  


Explain what does a control file contain?

0 Answers  


In which dictionary table or view would you look to determine at which time a snapshot or MVIEW last successfully refreshed?

1 Answers  


what is the output of select * from emp where null=null & select * from emp where 1=1

8 Answers   IMS Health, NIIT,


How you find out version of installed workflow?

1 Answers  






What is a static data dictionary in oracle?

0 Answers  


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

0 Answers  


What is a directory object?

0 Answers  


It's Urgent? How to IMPORT .xls & .txt file into ORACLE?

5 Answers  


What is a proxy class?

0 Answers  


How to use "startup" command to start default instance?

0 Answers  


How many categories of data types?

0 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)