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

What is difference between pl and sql?

0 Answers  


What is procedure explain with example?

0 Answers  


What does over partition by mean in sql?

0 Answers  


Mention what is the plv (pl/vision) package offers?

0 Answers  


how do u call in & out parameters for stored procedures?

10 Answers   A1 Technology, TCS, Techicon,






How delete all data from all tables in sql?

0 Answers  


What is autocommit sql?

0 Answers  


Why procedure is used in sql?

0 Answers  


What are different types of statements supported by sql?

0 Answers  


what is query cache in mysql? : Sql dba

0 Answers  


In pl/sql, what is bulk binding, and when/how would it help performance?

0 Answers  


I want to know the difference between A Record Type and a Table.

3 Answers   Thermotech,


Categories