Hecho āœ… ĀæCĆ³mo resolver SQL zoo? šŸ¦šŸ¦šŸ¦“ | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 5

Hecho āœ… ĀæCĆ³mo resolver SQL zoo? šŸ¦šŸ¦šŸ¦“

/*primero inserta el nuevo registro*/ INSERT INTO Animals VALUES ('Slim', 'Giraffe', 1); /*Realiza la consulta, tomando en cuenta los nombres de las columnas que deseas mostrar*/ SELECT Animals.name, Animals.type, Countries.country FROM Animals INNER JOIN Countries ON Animals.country_id = Countries.id ORDER BY country;

25th May 2021, 11:16 PM
Gilbert GarcĆ­a
Gilbert GarcĆ­a - avatar
3 Respostas
+ 2
Gilbert GarcĆ­a Result should come in descending order by County Id. So add this line: ORDER BY Animals.country_id DESC;
26th May 2021, 2:38 AM
AĶ¢J
AĶ¢J - avatar
+ 1
INSERT INTO Animals (name, type, country_id) VALUES ('Slim', 'Giraffe', 1); SELECT Animals.name, Animals.type, Countries.country FROM Animals INNER JOIN Countries ON Animals.country_id=Countries.id ORDER BY country; Hope this help
27th May 2021, 1:02 PM
Lucky Junihardi
Lucky Junihardi - avatar
0
Gracias pero es la respuesta la que coloquƩ. Ya lo habƭa resuelto.
27th May 2021, 3:38 PM
Gilbert GarcĆ­a
Gilbert GarcĆ­a - avatar