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 / gangadhar

select * from table2 where id not in ( select id from
table1)

Is This Answer Correct ?    18 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what's the maximum size of a row? : Sql server database administration

540


What is the stuff?

526


What is self join in sql server joins?

554


What are the types of user defined functions in sql server?

498


what are the steps you will take to improve performance of a poor performing query? : Sql server database administration

530






How do I setup a sql server database?

544


What is the native system stored procedure to execute a command against all databases?

534


Explain left outer join and right outer join?

555


What is difference between inner join and join?

538


What is normalization process?

597


What happens if null values are involved in datetime operations?

530


Explain the categories of stored procedure i.e. System stored procedure, local stored procedure, temporary stored procedure, extended stored procedure, remote stored procedure?

547


What are commonly used odbc functions in php?

536


Explain the architecture of ms sql reporting service?

526


User wants only to display only pdf as export option in report manager. How to achieve this?

173