May I abuse of the forum for this ? .....
I have a query that extract the total records stored from each ID in the month of may
SELECT ID, COUNT(*) as Count FROM records
WHERE MID(StoTime, 6,2)="05"
GROUP BY ID
ORDER BY Count ASC
And I obtain the correct result as in the picture.
Now, each ID has an owner that is inside another table "Owners" that has fields "ID" and "Owner"
I would like the result of the first query contains also the owner and not only the ID and Count.
I tried to understand how works UNION ad JOIN clauses but no success ...