I have two tables which I am using to run a query on.
Matches (MatchID, DateTime, Competition, Opposition)
Goals (MatchID, PlayerID, Minute)
What I would like is to have a query that selects Matches.Opposition, Matches.Competition and a count of how many times the MatchID is present in the Goals table.
I have tried this but it does not return any results.
SELECT Matches.MatchID, Matches.Competition, COUNT(Goals.MatchID) FROM Matches, Goals WHERE Matches.MatchID = Goals.MatchID GROUP BY Matches.MatchID;
If anyone can help I would be very grateful.
Thanx,
Ben.