Created 11-18-2022 06:37 PM
Hi Sir,
Created 11-19-2022 12:47 AM
hi @Raed_Faly
You need discipline with > 10 gold medals
Please use below query and check:
select distinct t.discipline, m.team from teams t join medals m on (t.noc=m.team and m.numbergold>10) order by m.team asc limit 5;
select distinct t.discipline, m.team from teams t join medals m on (t.noc=m.team and m.numbergold>10) order by m.team desc limit 5;
Please "Accept As Solution", if your queries are answered.
Created 11-19-2022 05:59 AM
Created 11-22-2022 01:46 AM
Hi @Raed_Faly Could you please share the DDL's for the tables, based on that I can update.