I have a simple query to join information from two tables based on a matching primary key:
Code:
SELECT Visits.Date, Results.IDFROM Visits INNER JOIN Results ON Visits.Id=Results.ID;
There are about 250,000 records in the visits table, and 8000 in the results table. I have double checked in Excel and all IDs from Results are found in Visits. However, this query returns no results. A Left Join will only return Visits.Date with no Results.ID, a Right Join will only return Results.ID with no Visit.Date. Any idea what is going on? I'm able to run join queries from Visits with other tables in my DB using the same ID key or other fields. Any query I run that includes the results table returns no records, however.