Microsoft
Software
Hardware
Network
Question : query question
Hi Experts,
In my database I've got two tables with the exact same field layout.
Table1 (called "personen") has a basic recordset plus a number of aditional records compared to Table 2(called "sportlink") that has only the basic set.
The difference in table1 between the basic recordset and the aditional records is that the basic set has a specific unique field filled and the aditionals don't have this field filled. This field is called "KNVBnr".
Now I'd like to compair both tables based only on the fields that have a filled value in the field KNVBnr. So the aditional records in table1 should be left out from the compare.
I want to know the difference between both tables in both ways and like to do this in two queries.
I've tied to build the fist one but without the wanted result.
My best effort is:
SELECT * FROM sportlink LEFT JOIN personen ON personen.KNVBnr = sportlink.KNVBnr WHERE personen.KNVBnr IS NULL
Hope you understand and can help me.
Answer : query question
try this
select * from sportlink where KNVBnr not in (select KNVBnr from personen)
Random Solutions
Exchange 2007 OWA causes 2 audit failures on failed login attempt
How do I pass Sonicwall GVC traffic through a TZ170 to terminate on a TZ210?
PHP error reporting
A tiff file that works well with XP but not windows 7 "paint". Can some one give me some ideas?
SBS2k8 E-mail alias already exists
can“t install forefront update KB 978297 on windows 2008 SBS
Forefront TMG Malware and NIS inspection updates aren't working.
Exchange 2003 Logical Size vs Physical Size
Do not ask me again!
How can I sync up two web servers using Windows Server 2008 or thus Windows Server 2008 has this function?