8 people are registered for an online course, but only the first 4 of them are able to participate. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

8 people are registered for an online course, but only the first 4 of them are able to participate.

Please answer this question for me thanks I insert : Select * from apartment Where limit 4 But its wrong and has error please help me that where is my mistake❤

18th Apr 2021, 2:01 PM
atena norsalehi
atena norsalehi - avatar
9 Answers
+ 3
Sandeep Kushwaha it doesnt work😐
18th Apr 2021, 2:26 PM
atena norsalehi
atena norsalehi - avatar
+ 3
Andrew Choi it was true thanks
18th Apr 2021, 8:56 PM
atena norsalehi
atena norsalehi - avatar
+ 2
Post your attempt first
18th Apr 2021, 2:03 PM
Atul [Inactive]
+ 1
Sandeep Kushwaha SELECT FROM Participants; WHERE LIMIT 4; the name of table is Participants
18th Apr 2021, 2:36 PM
atena norsalehi
atena norsalehi - avatar
+ 1
i think you just need to order by registration date. so your code could look something like this: SELECT * FROM participants ORDER BY registration_date LIMIT 4;
18th Apr 2021, 4:38 PM
you are smart. you are brave.
you are smart. you are brave. - avatar
+ 1
glad that worked.
18th Apr 2021, 9:27 PM
you are smart. you are brave.
you are smart. you are brave. - avatar
+ 1
this how i can solve it : select Participants.firstname,Participants.lastname from Participants limit 4; saludos de Mex
9th Jul 2021, 3:18 AM
Cesar Antonio Hurtado Ramos
Cesar Antonio Hurtado Ramos - avatar
0
SELECT * FROM participants LIMIT 4;
5th Sep 2021, 1:00 AM
Sara Tarek
Sara Tarek - avatar
0
SELECT Participants.firstname,Participants.lastname FROM Participants LIMIT 4;
9th Sep 2021, 4:12 AM
Kyle Sabat
Kyle Sabat - avatar