SQL Shortcuts

Boost your productivity with these essential SQL shortcuts.

ShortcutDescription
SELECTRetrieve data from a database (recuperar datos de una base de datos)
INSERT INTOInsert new data into a table (insertar nuevos datos en una tabla)
UPDATEUpdate existing data in a table (actualizar datos existentes en una tabla)
DELETEDelete data from a table (eliminar datos de una tabla)
CREATE TABLECreate a new table in the database (crear una nueva tabla en la base de datos)
ALTER TABLEModify an existing table (modificar una tabla existente)
DROP TABLEDelete a table from the database (eliminar una tabla de la base de datos)
WHEREFilter records based on conditions (filtrar registros según condiciones)
JOINCombine rows from two or more tables (combinar filas de dos o más tablas)
GROUP BYGroup rows sharing a property (agrupar filas que comparten una propiedad)
ORDER BYSort rows in a specific order (ordenar filas en un orden específico)
LIMITSpecify the number of rows to return (especificar el número de filas a devolver)
DISTINCTReturn only unique rows (devolver solo filas únicas)
COUNTCount the number of rows (contar el número de filas)
AVGCalculate the average value (calcular el valor promedio)
SUMCalculate the sum of values (calcular la suma de valores)
MINFind the smallest value (encontrar el valor más pequeño)
MAXFind the largest value (encontrar el valor más grande)
HAVINGFilter grouped data (filtrar datos agrupados)
UNIONCombine results of two queries (combinar resultados de dos consultas)