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

Why we use sql profiler?

1 Answers  


What is a schema? How is it useful in sql servers?

1 Answers  


In a package if we have 10 procedures or functions,How to know which will execute first?

1 Answers   Sollet Soft,


What are the benefits of pl sql?

1 Answers  


What are indexes, and what are the different types?

3 Answers  


What is snowflake sql?

1 Answers  


what is row? : Sql dba

1 Answers  


Define join and name different types of joins?

1 Answers  


Can a trigger call a stored procedure?

1 Answers  


what are the type of locks ? : Sql dba

1 Answers  


How to execute multiple sql statements in a single annonymous block irrespective of the sql statement result?

2 Answers  


What is an ndf file?

1 Answers  


Categories