0
The WHERE Statement
Brand New Cars You are given the following table of cars with details: Write a query to output the brand and model years of the cars produced in 2020, sorted by the 'company' column. My code as below: SELECT company, year FROM cars WHERE year = '2020'; But the result that comes out say “no input”. Please help.
6 ответов
+ 2
you miss at least the sort requirement ^^
+ 2
Got it. Thanks visph for the hint. Need to use ORDER BY.
0
You can try this also,
SELECT company,year
FROM cars
WHERE year='2020'
ORDER BY company ;
0
SELECT company,year FROM cars WHERE year = '2020' ORDER BY company;
0
SELECT * FROM cars
WHERE year=2018 OR year>=2018;
0
SELECT company, year
FROM cars
WHERE year = '2020'
ORDER BY company;
I tested it
Should work