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

Answer Posted / giri

Select * From Table_Name Where 1 = 2;

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a sql*loader control file?

615


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

2068


How exception handling is done in advance pl/sql?

494


How do I restart sql?

524


Is sql procedural language?

550






How do I add a primary key to a table?

537


How do I write a cron which will run a sql query and mail the results to agroup?

524


What is number function in sql?

525


Write a program that shows the usage of while loop to calculate the average of user entered numbers and entry of more numbers are stopped by entering number 0?

1675


Explain how can you save or place your msg in a table?

593


What are the types of queries in sql?

517


What is sql and how does it work?

547


what is sql server agent? : Sql dba

599


how to shutdown mysql server? : Sql dba

563


What are the advantages of sql? Explain

648