0% found this document useful (0 votes)
171 views

009b - Tutorial SQL en Español Interactivo Con Intérprete SQL

This document is an interactive SQL tutorial in Spanish that allows the user to practice SQL commands and immediately view the results. It covers topics like SELECT statements, DISTINCT, WHERE clauses, ORDER BY, LIMIT, COUNT, SUM, AVG, MAX, MIN, GROUP BY, and more. The sample question asks the user to return a list of distinct species of animals greater than 50cm in height from the friends_of_pickles table.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
171 views

009b - Tutorial SQL en Español Interactivo Con Intérprete SQL

This document is an interactive SQL tutorial in Spanish that allows the user to practice SQL commands and immediately view the results. It covers topics like SELECT statements, DISTINCT, WHERE clauses, ORDER BY, LIMIT, COUNT, SUM, AVG, MAX, MIN, GROUP BY, and more. The sample question asks the user to return a list of distinct species of animals greater than 50cm in height from the friends_of_pickles table.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Aprende SQL · Tutorial SQL · Aprende MySQL

Tutorial SQL en Español interactivo con


intérprete SQL
Este tutorial te proporciona instrucciones SQL fáciles de entender y practicar mientras estás
aprendiendo utilizando un intérprete SQL. Práctica tus comandos SQL y obtén los
resultados inmediatamente.

Utiliza el menú y sigue las lecciones para aprender SQL por tu cuenta.

« Lección previa Siguiente lección »

SELECT *
Lección 9: DISTINCT
SELECT specific
By putting DISTINCT after SELECT, you do not return duplicates.
columns
WHERE ... Equals For example, if you run
SELECT DISTINCT gender, species FROM friends_of_pickles WHERE height_cm < 100;, you
WHERE ...
will get the gender/species combinations of the animals less than 100cm in height.
Greater than

WHERE ... Note that even though there are multiple male dogs under that height, we only see one
Greater than or row that returns "male" and "dog".
equal
Can you return a list of the distinct species of animals greater than 50cm in height?
AND

OR La consulta que has introducido no ha


IN devuelto los resultados adecuados. Por
favor, inténtalo de nuevo.
DISTINCT

ORDER BY
SQL: Resultado:
LIMIT # of SELECT id, species FROM friends_of_pickles id species
returned rows WHERE height_cm > 50;
1 human
COUNT(*)
2 human
COUNT(*) ...
WHERE 7 dog

SUM
AVG Run SQL

MAX and MIN


Tablas actuales:
GROUP BY
friends_of_pickles
Nested queries
id name gender species height_cm
NULL
1 Dave male human 180
Date
2 Mary female human 160
Inner joins
3 Fry male cat 30
Multiple joins 4 Leela female cat 25
Joins with 5 Odie male dog 40
WHERE
6 Jumpy male dog 35
Left joins
7 Sneakers male dog 55
Table alias

Column alias
Resultado esperado:
Self joins
species
LIKE
human
CASE
dog
SUBSTR

COALESCE

Languages: English, Español, Portoghese, Italiano, Français, 日本語, Deutsch

Since 2018 · SQL-Easy.com. A Vidian Media Project.

About · Cookie Policy

You might also like