sql query to get zero records from a table having n no of
records

Answers were Sorted based on User's Feedback



sql query to get zero records from a table having n no of records..

Answer / ketul

Select * From Table_Name Where 1 = 2;

Is This Answer Correct ?    46 Yes 4 No

sql query to get zero records from a table having n no of records..

Answer / giri

Select * From Table_Name Where 1 = 2;

Is This Answer Correct ?    11 Yes 0 No

sql query to get zero records from a table having n no of records..

Answer / abburi

select *from table_name where 1=2;

Is This Answer Correct ?    9 Yes 0 No

sql query to get zero records from a table having n no of records..

Answer / xyz

select * from emp minus
select * from emp;

Is This Answer Correct ?    12 Yes 4 No

sql query to get zero records from a table having n no of records..

Answer / krishan

yes

Is This Answer Correct ?    7 Yes 3 No

sql query to get zero records from a table having n no of records..

Answer / welcomeashwin

SELECT * FROM TABLE_NAME WHERE 1 = 2;

Is This Answer Correct ?    3 Yes 0 No

sql query to get zero records from a table having n no of records..

Answer / mallik

select * from table_name where rownum < n -(n-1)

--where 'n' is no of rows.

Is This Answer Correct ?    3 Yes 1 No

sql query to get zero records from a table having n no of records..

Answer / siri

select * from table_name where 1=0;

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

How do we use distinct statement? What is its use?

0 Answers  


2. Select A.A from ( select 1 as from dual Union select 1 as from dual)A Full outer join ( select 1 B from dual Union select 2 B from dual)B On A.A=B.B

2 Answers   Fintellix,


what is global variable in pl/sql

1 Answers  


select sal from emp group by sal

3 Answers   TCS,


how to load data with out header and footer records in a database using sql*loader? pls tell me the answer urgently

1 Answers   Oracle, Wipro,






How does postgresql compare to mysql?

0 Answers  


what is the cursor and use of cursor in pl/sql ?

4 Answers  


Explain the usage of WHERE CURRENT OF clause in cursors ?

4 Answers   Satyam,


Which is better join or subquery?

0 Answers  


How do I count rows in sql?

0 Answers  


Can a select statement fire a trigger?

0 Answers  


Can we rename a column in the output of sql query?

0 Answers  


Categories