I am having this problem in one of the project (zoo) in sql, my output and expected output are same but | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I am having this problem in one of the project (zoo) in sql, my output and expected output are same but

It's not showing correct solution, I am stuck please help

23rd Apr 2022, 3:31 AM
18oo096_Uttam Kumar
6 Answers
+ 1
18oo096_Uttam Kumar INSERT INTO ANIMALS VALUES ('Slim', 'Giraffe', 1); SELECT name, type, country FROM ANIMALS INNER JOIN COUNTRIES ON ANIMALS.country_id = COUNTRIES.id ORDER BY country_id DESC don't worry about character casing
23rd Apr 2022, 5:08 AM
NonStop CODING
NonStop CODING - avatar
+ 1
Thankyou got it
23rd Apr 2022, 5:13 AM
18oo096_Uttam Kumar
0
18oo096_Uttam Kumar what problem, show us your code??
23rd Apr 2022, 3:55 AM
NonStop CODING
NonStop CODING - avatar
0
18oo096_Uttam Kumar you need to select name, type, country and use the inner join on animal country id = countries id, after that order by country id in descending order
23rd Apr 2022, 4:01 AM
NonStop CODING
NonStop CODING - avatar
0
INSERT INTO ANIMALS VALUES ('SLIM', 'GIRRAFE', '1'); SELECT NAME, TYPE, COUNTRY FROM ANIMALS INNER JOIN COUNTRIES On COUNTRY_ID= ID ORDER BY COUNTRY;
23rd Apr 2022, 5:06 AM
18oo096_Uttam Kumar
0
This is the code
23rd Apr 2022, 5:06 AM
18oo096_Uttam Kumar