ZOO - not sure what I am doing wrong…? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

ZOO - not sure what I am doing wrong…?

/* name - "Slim", type - "Giraffe", country_id - 1 */ CREATE VIEW list AS SELECT name,type, country_id FROM animals; INSERT INTO animals(name,type,country_id) VALUES ('Slim', 'Giraffe',1); SELECT country_id, countries.id FROM countries INNER JOIN animals ON country_id = countries.id; SELECT name,type,country_id AS country FROM animals;

7th Feb 2022, 9:34 PM
Tevin
2 Answers
+ 1
Thank you friend so much!
8th Feb 2022, 4:15 PM
Tevin
0
Hi Tevin, May I suggest you to search the forum first? this query had been uploaded many times so I'm sure you can get some clues from earlier discussions. Search by 'zoo' term 👍
8th Feb 2022, 1:01 AM
Ipang