0

Syntax error in 10.2 Practice - Superheros

Hi While trying to solve the above mentioned practice problem, I am facing below syntax error. Request you to kindly correct me. My code lines are also mentioned below along with Error. ERROR: syntax error at or near "Studios" LINE 2: where "production" = Marvel Studios AND "year" >= 2010 My code - select "name" from films where "production" = Marvel Studios AND "year" >= 2010 Order by "Name";

24th Nov 2021, 1:18 AM
Srikanth VS
3 Réponses
+ 4
Remove all quotation marks. Instead put 'Marvel Studios' into single quotation marks.
24th Nov 2021, 2:01 AM
Simon Sauter
Simon Sauter - avatar
+ 3
Srikanth VS You can't write columns name inside quotation marks. Otherwise that's would be call String. And also you have to write string values inside single quotes like: 'Marvel Studios'
24th Nov 2021, 3:03 AM
A͢J
A͢J - avatar
+ 1
select name from films where production = 'Marvel Studios' AND year >= 2010 Order by name;
1st Mar 2022, 11:26 AM
Leonie Vanessa Fürich