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

Answer Posted / welcomeashwin

SELECT * FROM TABLE_NAME WHERE 1 = 2;

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is view? Can we update view

863


How can a pl sql block be executed?

526


What are sql built in functions?

506


What is scalar data type in pl sql?

549


What are inner outer left and right joins in sql?

511






what is the difference between delete and truncate statement in sql? : Sql dba

544


Hi how to import oracle sequence in Informatica? Please write stored procedure code that will import oracle sequence in Informatica SP transformation as per below scenario Oracle table product list Pro_id, pro_name 101, LED Lights. 102, 20watt CFL Lights. 103, 30 watt CFL lights Now a new flat file with new product list needs to be added to oracle table product list with oracle sequence. flat file product Prono,pro_name, 1, 20 watt tube light 2, 30 watt tube light & target should be like 101, LED Lights. 102, 20watt CFL Lights. 103, 30 watt CFL lights. 104, 20 watt tube light 105, 30 watt tube light thks reg suvarna joshi suvarnaatsuvarna@rediffmail.com

2064


What is a native sql query?

490


How can we implement rollback or commit statement in a trigger?

574


What is primary key and foreign key?

529


Does truncate free space?

515


What is sql resultset?

527


why does the selected column have to be in the group by clause or part of an aggregate function? : Sql dba

554


How to add new employee details in an employee_details table with the following details

643


Which is faster view or stored procedure?

498