+ 6
10.2 Practice - Logical Operators (Superheroes)
You are given the following films table with details about superhero movies: Write a query to output the names of all of the films which were produced by Marvel Studios in 2010 or later, sorted by the 'name' column. My code: SELECT name FROM films WHERE year >= '2010' AND production = 'Marvel Studios'; But it says no input. Please help.
18 odpowiedzi
+ 5
Chin Eu
Year is numeric value not string so remove single quotes and also result should be in Ascending ORDER of Name.
SELECT name FROM films WHERE production = 'Marvel Studios' and year >= 2010 ORDER BY name
+ 3
select name,year from films where production IN('Marvel Studios') and year >= 2010 order by year
+ 2
OMG thank you so much!!!! I thought I will cry :))) been struggling with this, just because I wrote marvel studios and not Marvel Studios
+ 1
select name from films
where production = 'Marvel Studios'
and year >= 2010
order by films.name;
be careful when marvel studios M should be upper case and S should be in Upper case ..
thankyou
+ 1
SELECT name, year FROM films
WHERE production IN ('Marvel Studios')
AND films.year >= 2010
0
Thanks Ajanant !
0
Thank you so much. I struggled for two hours and couldn't find it, time was not wasted thanks to you.
0
This is Correct answer for this
SELECT name
FROM films
WHERE production = 'Marvel Studios' and year >= 2010 ORDER BY name
0
I keep getting the same error with this code
SELECT name
FROM films
WHERE production = 'Marvel studios' AND year >= 2010 ORDER BY name
0
SELECT name FROM films WHERE production = 'Marvel Studios' and year >= 2010 ORDER BY name
0
great thanks
0
My solution:
SELECT name FROM films WHERE production = 'Marvel Studios' and year >= 2010 ORDER BY name
0
i keep getting the no input error as well. my code is literally the same as the one in the solution. Is this a coding error from Sololearn?
0
SELECT name, year FROM films
WHERE production = 'Marvel Studios' AND year >= 2010
ORDER BY name DESC
0
my code was successful when I used desc instead of asc.
select name , year from films
where production = 'Marvel Studios'
and year >= 2010
order by name desc;
0
I think this can work:
SELECT name , year
FROM films
WHERE year >= 2010 and production = 'Marvel Studios'
Order by name desc
0
SELECT name FROM films
WHERE production='Marvel Studios' and year>=2010 ORDER BY name;
- 2
why this code that I've written doesn't work?
here is the code:
select name
from films
where production='marvel studios'
and year>=2010
order by name