Query help re: type of join

Access Beginner

Active Member
Joined
Nov 8, 2010
Messages
311
Office Version
  1. 2016
Platform
  1. Windows
Hi All,

I have two queries, named Population and Debts.

I have been asked to give the Population for those that do not have a debt and I'm not sure how this would be done via Access.

When I go to create another query based on the queries above and I look at the 3 joins available, I can see how they would meet my needs.

The field that I use to join them both is called, Reference.

Cheers
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
It's a right join you want.

SELECT Population.PopName
FROM Debts RIGHT JOIN Population ON Debts.Reference = Population.Reference
WHERE Debts.Reference Is Null;
 
Upvote 0
It's a right join you want.

SELECT Population.PopName
FROM Debts RIGHT JOIN Population ON Debts.Reference = Population.Reference
WHERE Debts.Reference Is Null;

Thanks for that Norie, but what is PopName in the above?

Cheers
 
Upvote 0
It's a made up fieldname, had to use one since you only supplied one field name.

Though I could just have returned Reference I suppose.
 
Upvote 0

Forum statistics

Threads
1,216,507
Messages
6,131,059
Members
449,616
Latest member
PsychoCube

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top