0

I have tried to execute query for project 3 in sql course but not getting it write

getting it wrong near select statement

9th Jan 2021, 2:55 PM
CHANDRAKANT
CHANDRAKANT - avatar
10 Antworten
+ 2
CHANDRAKANT (1) You missed a semicolon on line 3 before SELECT, to indicate a second statement. (2) countries.country, not animals.country_id based on the problem because the output is sorted by the word and not by their id. (3) ascending, not descending based on the problem. and the output. - - - - - - - - - - - - - - - INSERT into Animals (name, type, country_id) VALUES('Slim', 'Giraffe', 1); SELECT animals.name, animals.type, countries.country FROM animals,countries WHERE animals.country_id=countries.id order by countries.country;
9th Jan 2021, 3:11 PM
noteve
noteve - avatar
+ 1
Can you show us your attempt so we may know what needs to be adjusted? thanks.
9th Jan 2021, 2:58 PM
noteve
noteve - avatar
+ 1
hi chandrakant, have you solve the question? im also stuck there. is it any limitation set for checking the result? there is no output comeout
13th Feb 2021, 6:05 AM
NURLIYANA AMIRAH
NURLIYANA AMIRAH - avatar
0
INSERT into Animals (name, type, country_id) VALUES('Slim', 'Giraffe', 1) SELECT animals.name, animals.type, countries.country FROM animals,countries WHERE animals.country_id=countries.id order by animals.country_id desc;
9th Jan 2021, 2:59 PM
CHANDRAKANT
CHANDRAKANT - avatar
0
plz help me I am just one step away from getting my certificate
9th Jan 2021, 3:00 PM
CHANDRAKANT
CHANDRAKANT - avatar
0
U need to use Inner join, please refer to that section of the course and reattempt the test
9th Jan 2021, 3:05 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
0
i have tried even that also using inner join still didnt get
9th Jan 2021, 3:10 PM
CHANDRAKANT
CHANDRAKANT - avatar
0
NURLIYANA i have the same pb
13th Feb 2021, 10:26 AM
Abdelghani
Abdelghani - avatar
0
INSERT into Animals(name,type,country_id) VALUES('slim','Giraffe',1); select Animals.name,Animals.type,countries.country from Animals,countries where Animals.country_id=countries.id order by Animals.country_id DESC; my sql but didn't get result what am i missing
21st Apr 2021, 3:52 AM
Rahul dave