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

10. Display the client number, order date and shipping date for all orders where the shipping date is between three and six months after the order date.

3 Answers   Wipro,


What are the most common interview questions on ETL Testing for experience?

0 Answers  


how to find find & delete duplicate rows from two different tables?

3 Answers   Accenture, TCS,


How to view all columns in an existing table?

0 Answers  


What is the purpose of tables, private synonyms and public synonyms in Oracle?

0 Answers   HCL,






Can a field be used in a report without it appearing in any data group ?

4 Answers   Oracle,


How can you merge two tables in oracle?

0 Answers  


What is translate in oracle?

0 Answers  


How to create a new view in oracle?

0 Answers  


write a query to count number of alphabets in given string for example "APPLE" write a query to generate sequence from 50 to 100 write a query to display in single string "ABCD,EFGH,IJKL,PQRS"

7 Answers   British Telecom BT,


3. Display all the client numbers in the ORDER table. Remove duplicates.

1 Answers   Wipro,


What is transaction control statement and how many types of transaction control statement in Oracle?

0 Answers   MCN Solutions,


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)