I have to list all the names of footballers who have a trophy in London.
The trophies are in the GalleryTable:
galleryId City
G01 London
G02 London
G03 Liverpool
And the footballers in the footballTable:
FootballID FootballerName
F01 John Terry
F02 Frank Lampard
F03 Ryan Giggs
The Gallery table is connected to an Exhibition full of trophies and the Footballer table is connected to a trophy table which lists all the trophies, this is then linked to which exhibition it is held in.
So far I have :
SELECT FootballerName
FROM Footballer, gallery
WHERE gallery.city=London;
When i run this query it asks me for a parameter value (which I don't want)
but if I put London in it comes up with the correct Footballers but just duplicate names :/
Thanks for any help!
The trophies are in the GalleryTable:
galleryId City
G01 London
G02 London
G03 Liverpool
And the footballers in the footballTable:
FootballID FootballerName
F01 John Terry
F02 Frank Lampard
F03 Ryan Giggs
The Gallery table is connected to an Exhibition full of trophies and the Footballer table is connected to a trophy table which lists all the trophies, this is then linked to which exhibition it is held in.
So far I have :
SELECT FootballerName
FROM Footballer, gallery
WHERE gallery.city=London;
When i run this query it asks me for a parameter value (which I don't want)
but if I put London in it comes up with the correct Footballers but just duplicate names :/
Thanks for any help!