SQL : Incorrect options in for the quiz | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

SQL : Incorrect options in for the quiz

It seems the incorrect options have been provided for the last question of DISTINCT AND LIMIT quiz Question is : Use LIMIT to select the 'id' and 'name' columns from 'customers'. Show 12 results starting from the fifth. _____ id, name From Customers limit _____, ____ options available are : RESULT, SELECT, BY, 4, SHOW, 12. the blanks should have SELECT, 12, OFFSET 4 as the answer. It seems options given are incorrect. Please assist.

4th Aug 2022, 8:02 AM
Dimple Gurbani
Dimple Gurbani - avatar
7 Answers
+ 6
Dimple Gurbani It seems you are correct that the question does not reflect the previous lesson. Send an email to info@sololearn.com with your observation. Maybe they will update the question
4th Aug 2022, 9:27 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 4
SoloProg I tried your solutions in the Sololearn playground without success. Do they work external to Sololearn? Copy of error message CREATE TABLE INSERT 0 10 ERROR: LIMIT #, # syntax is not supported FROM customers LIMIT 4, 6; ^ HINT: Use separate LIMIT and OFFSET clauses.
4th Aug 2022, 11:30 PM
Rik Wittkopp
Rik Wittkopp - avatar
+ 3
-- Try it Good Luck SELECT id, name FROM customers LIMIT 4 , 12
4th Aug 2022, 9:29 AM
SoloProg
SoloProg - avatar
+ 3
SoloProg Thanks for the feedback & relevant information
5th Aug 2022, 9:49 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 2
-- Copy this code and see the result SELECT * FROM Customers LIMIT 4, 12; https://www.w3schools.com/mysql/trymysql.asp?filename=trysql_select_limit_where
4th Aug 2022, 9:40 AM
SoloProg
SoloProg - avatar
+ 2
Rik Wittkopp there are different types and versions of SQL Write this code in Sololearn SELECT VERSION(); you will see the result: PostgreSQL 13.0 on x86_64-pc-linux-musl, compiled by gcc (Alpine 9.3.0) 9.3.0, 64-bit
5th Aug 2022, 8:41 AM
SoloProg
SoloProg - avatar
+ 2
Write this code in https://paiza.io/projects/-gHrPj0DKnWlh3HYCf7PeQ?language=mysql SHOW VARIABLES LIKE 'version'; you will see the result: version 8.0.28-0ubuntu0.20.04.3 meanwhile write this code in https://www.w3schools.com SHOW VARIABLES ; you will see the result: rdsdbbin/mysql-5.6.51.R2
5th Aug 2022, 9:01 AM
SoloProg
SoloProg - avatar