473,322 Members | 1,314 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Linking between two tables

I have two list of emloyees. They are linked by emloyeeID.
How can I make a query that will have all the employees that appears in table
A, but not in table B.
I asked this question in the past, and I was told that there is a wizard for
it, but I could not find it. So may be I can get the SQL script for it.

Thanks,

galsaba

Nov 13 '05 #1
4 1153
Galsaba,
It's an outer join. So,
SELECT EMPLOYEE_TBL.ID AS EMP_ID, EMPLOYEE_TBL.SEARCH_NAME AS EMP_NAME FROM
EMPLOYEE_TBL_OLD AS EMPLOYEE_TBL LEFT OUTER JOIN EMPLOYEE_TBL_NEW ON
EMPLOYEE_TBL.ID = EMPLOYEE_TBL_NEW.EMPLOYEE_ID
WHERE EMPLOYEE_TBL.ID IS NULL;
The key to it is to return all records in the left (or right) table and only
those records in the other table that match and then look for nulls on the
joined column.

"Galsaba" <ga*****@aol.com> wrote in message
news:20***************************@mb-m19.aol.com...
I have two list of emloyees. They are linked by emloyeeID.
How can I make a query that will have all the employees that appears in table A, but not in table B.
I asked this question in the past, and I was told that there is a wizard for it, but I could not find it. So may be I can get the SQL script for it.

Thanks,

galsaba

Nov 13 '05 #2
Open the database window to queries. Click on New. You will see one of the
options is Find Unmatched Query Wizard.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"Galsaba" <ga*****@aol.com> wrote in message
news:20***************************@mb-m19.aol.com...
I have two list of emloyees. They are linked by emloyeeID.
How can I make a query that will have all the employees that appears in table
A, but not in table B.
I asked this question in the past, and I was told that there is a wizard for
it, but I could not find it. So may be I can get the SQL script for it.

Thanks,

galsaba

Nov 13 '05 #3
I coule not see " Unmatched Query Wizard". But I just read one of your
responses to me earlier this year.
You suggested then to have a query, and to cange the link propertties.

Galsaba
Nov 13 '05 #4
When you click on New, do you get a New Query Dialog?
In the New Query Dialog, do you see:
Design View
Simple Query Wizard
CrossTab Query Wizard
????

Steve
PC Datasheet
"Galsaba" <ga*****@aol.com> wrote in message
news:20***************************@mb-m01.aol.com...
I coule not see " Unmatched Query Wizard". But I just read one of your
responses to me earlier this year.
You suggested then to have a query, and to cange the link propertties.

Galsaba

Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: John South | last post by:
I have an Access 2000 front end that I wish to work with a SQL Server 2000 database by means of Linked tables. Do I have to use an ODBC connection to SQL Server? It seems to be the only option...
2
by: Jeff Pritchard | last post by:
Some time ago I am sure I came across something that said this was possible, though it doesn't seem to work. A client wants to replace an Access back-end with SQL Server tables. We have tried...
0
by: gasturbtec | last post by:
please help im new at access programming and i just got this project dropped in my lap because the old programmer quit. i've been doing ok so far but now i need to add code to an existing database...
18
by: Mark P | last post by:
I have a bit of vb code that uses Tables.Append to programatically link tables from Oracle and DB2 datasources. The problem I am having on some client machines is that the link will take anywhere...
2
by: Matthew Wells | last post by:
Good morning... I have an Access front end that uses SQL Server linked tables. SQL Server uses Windows authentication. I have one Windows group that all Access users are a member of. I added...
2
by: TheTamdino | last post by:
One of the things that is common between most genealogy databases is that they will have one screen were you log all the information for a given person and then (maybe) have a link to a source...
11
by: dskillingstad | last post by:
I've been struggling with this problem for some time and have tried multiple solutions with no luck. Let me start with, I'm a novice at Access and I'm not looking for someones help to design my...
1
by: hmiller | last post by:
I'm sorry to populate the server with yet another question about linking multiple tables and queries, howerver I have not been able to find the right criteria. My problem. I am trying to...
1
by: deiopajw | last post by:
I have a Back end database on a network drive. The copies of the front end are located on individual pc's (in their C drive). The problem arises when a laptop user naturally hooks up to the...
3
by: ARC | last post by:
I'm having trouble here with Access 2007 and connecting to a different database. The code below works great IF the previous back-end database connection is still present and you are trying to...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.