It's been awhile, and apparently I'm rusty. I'm doing what I think is a basic Join for a query, using the design view, and the query is not returning anything. Any help appreciated.
I am importing data from a web based sales tracking tool via XL to be able to do some detailed one-time reporting. I am limited on what can be exported from the sales tool so am making due with some fields as keys, unlike a db designed from scratch.
The first table imported is ClientTeacher with the fields:
Client (text field)
Teacher (text field)
I have reviewed the Client field and have confirmed there are no duplicates and am using this as a primary key.
The second table imported is Purchases with the fields:
ID (autonumber)
Client
Item
Category
Sale Date
and other fields.
On import I added the ID field as a key. Client again is a text field and since they are from the same imported source the names are in the exact same format as ClientTeacher.
I would like to get a list of purchases, but have the teacher be listed next to each purchase. If ClientTeacher is not an exhaustive list I'm fine with nulls in those records for now.
Here's the SQL I have:
SELECT Purchases.Client, ClientTeacher.Teacher, Purchases.Category, Purchases.[Sale Date]
FROM ClientTeacher RIGHT JOIN Purchases ON ClientTeacher.Client = Purchases.Client;
This query returns a list of purchases, but the Teacher field is empty. I have done some sampling and see that the text fields for most of the ClientTeacher.Client and Purchases.Client fields match.
Doing an INNER JOIN returns nothing.
What am I missing? Is my query wrong? Is there more that I need to do to my imported data? Thanks!