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

Answer Posted / abburi

select *from table_name where 1=2;

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we rollback truncate?

537


How many unique keys can a table have?

554


What is normalization sql?

509


what is bcp? When is it used?

578


What is delimiter in pl sql?

582






What is serial sql?

522


Do we need to create index on primary key?

463


What is difference between primary and secondary key?

515


Is inner join same as self join?

578


What is substitution variable?

581


what is rollback? : Sql dba

591


a table has 2 classifications 1)liabilities 2)earnings this liabitity has 2 elements with 2 input values and the earnings have 2 elements with 2 input values i wrote a query so that my input is liability savings amount1 amount2 xxxx null xxxxxx 0 xxx1 null xxxxx1 0 null yyyy 0 yyyy null yyy1 0 yyy1 my problem is --when i developed a report(d2k) with this data my o/p is liabilities,amount1,savings,amount2 xxxx xxxxxx xxx1 xxxxx1 yyyy yyyy yyy1 yyy1 how could i move this savings,savings values 2 palces up. can any body provide me witha better solution

1774


What are the different dml commands in sql?

584


What is crud sql?

539


What is scalar function?

567