Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select from where 1

Status
Not open for further replies.

straatlang

Technical User
Apr 7, 2003
40
NL
Hi,

Maybe someone can help me out with the following.

I have to tables I need to know the missing numbers.

Table A

NRA
1
1
2
2
2
3
3
4
4
5
5
7
7
7
7


Table B

NRB
2
2
2
3
3
3
3
5
I would like to see which number is not present in B

the result should be shown ones
so the result should be 1,4 and 7


 
Code:
select distinct nra from tablea
where nra not in (select nrb from tableb)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top