adspace


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

SELECT * from Table2
EXCEPT
SELECT * FROM Table1

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different subsets of sql?

1656


What is temporary table in sql server? Why we use temp table?

1023


How to connect php with different port numbers?

1192


What is the primary use of the model database?

1151


What is a view in sql?

1043


How do I find the sql server version?

1103


How do I find query history in sql server?

1027


Can one drop a column from a table?

1092


How do I create a trace in sql server?

1121


What are the different SQL Server Versions you have worked on?

1080


Explain “row_number()” in sql server with an example?

1080


What is standby servers? Explain types of standby servers.

1083


what is the Ticketing tool used in Wipro technologies at Bangalore...???

8233


List the ways in which dynamic sql can be executed?

1089


What is subquery? Explain the properties of a subquery?

1063