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
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
+ 1
Thankyou got it
0
18oo096_Uttam Kumar
what problem, show us your code??
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
0
INSERT INTO ANIMALS
VALUES ('SLIM', 'GIRRAFE', '1');
SELECT NAME, TYPE, COUNTRY
FROM ANIMALS INNER JOIN COUNTRIES
On COUNTRY_ID= ID
ORDER BY COUNTRY;
0
This is the code