0

I am unable to solve the 15.2 practice of SQL.

My try: SELECT team, scored_goals, MIN(conceded_goals) AS conceded_goals FROM league ORDER BY scored_goals DESC;

16th Feb 2021, 2:50 PM
Md Imraj Hossain
Md Imraj Hossain - avatar
2 ответов
+ 4
Posted by "Alan" in the course: The MIN has to be a subquery. Try this : SELECT * FROM league WHERE conceded_goals = (SELECT MIN(conceded_goals) FROM league) ORDER BY scored_goals DESC; Sounds good to me 😎 https://www.sololearn.com/learning/1861/ Subquery link
16th Feb 2021, 9:50 PM
StephBill
StephBill - avatar
0
Thanks but contradictory to their lesson taught.
17th Feb 2021, 2:12 AM
Md Imraj Hossain
Md Imraj Hossain - avatar