hi,

how to match retrieve the unmatched records from 2 tables
in which we dont have any primary key. example : table1 has
1,2,3,4,5 and table2 has 1,2,3,4,5,6,7,8,9,10 and i want
the numbers from 6 to 10 to be displayed and should not
come as null. i need the numbers. please reply as soon as
possible.

Answer Posted / debi

(select * from table2)
minus
(select * from table1)

Is This Answer Correct ?    6 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you test your database? : sql server database administration

521


What is user-defined inline table-valued function?

513


When I run the sql server 2000 setup, it just hangs. What do I do?

646


What is the dbcc command and why is it used?

569


What are the kinds of subquery?

527






What are the benefits of filtered indexes?

507


What are orphan records?

545


Write a code to select distinct records without using the DISTINCT keyword.

644


after migrating the dts packg to ssis by using migrtn wizrd in 2005. iam not able to open ssis pack and getting error. what r those errors? how to resolve?

1683


Do you know what is lock escalation?

578


What is full outer join in sql server joins?

565


What are the difficulties faced in cube development? : sql server analysis services, ssas

605


What is the purpose of the tempdb database?

571


What are sql servers used for?

505


How the authentication mode can be changed?

604