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 ?    12 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 you drop a trigger?

0 Answers  


What is cursor and why it is required?

0 Answers  


The select into statement is most often used to create backup copies of tables or for archiving records?

0 Answers  


What are Anti joins

1 Answers   IBM,


What are the advantages of sql? Explain

0 Answers  






How did you export data from database to excel file.

1 Answers   TCS,


GLOBAL TEMPORARY TABLE over Views in advantages insolving mutating error?

0 Answers   Virtusa,


Do we need commit after truncate?

0 Answers  


What is the use of & in pl sql?

0 Answers  


How do I partition a table in sql?

0 Answers  


Write an sql query to select all records from the table?

0 Answers  


How does join work in sql?

0 Answers  


Categories