0
What am I doing wrong with IN ? Please help.
select teamname , country from teams order by teamname where country IN ('spain', 'england', 'germany');
11 Antworten
+ 4
What was the task?
Ensure the country names listed are *exactly* as shown in the task Description, letter case matters.
'Spain' not equal to 'spain' etc.
+ 2
select teamname ,country from teams
where country IN ('Spain','England','Germany')
ORDER BY teamname
+ 1
Also, the WHERE clause has to come before the ORDER BY clause.
+ 1
Thank you so much!
+ 1
Write a query to output the team names and the countries of all teams that have played in La Liga (Spain), Premier League (England) and Bundesliga (Germany)․
+ 1
I see, I thought it was not case sensitive.
+ 1
Leeah Jones
Should not be case sensitive but don't know which database Sololearn is using.
+ 1
The question of case sensitivity in SQL depends on several factors:
https://learnsql.com/blog/sql-case-sensitive/
0
team database in SQL
0
Thank you
- 1
Leeah Jones
Just remove ORDER BY clause and you are done.
Also all countries name should start from Capital letter