SELECT
, FROM
, WHERE
.SELECT
)WHERE
): Using comparison operators (=
, !=
, <
, >
, <=
, >=
), logical operators (AND
, OR
, NOT
), and special operators (BETWEEN
, LIKE
, IN
, IS NULL
).ORDER BY
): Arranging output in ascending (ASC
) or descending (DESC
) order.LIMIT
/ TOP
): Restricting the number of rows returned.JOIN
s)INNER JOIN
: Combining rows from two tables based on a related column.LEFT JOIN
/ RIGHT JOIN
: Including all rows from one table and matched rows from the other.FULL OUTER JOIN
: Combining all rows from both tables.Self JOIN
: Joining a table to itself.COUNT
, SUM
, AVG
, MIN
, MAX
to perform calculations on sets of rows.GROUP BY
): Grouping rows that have the same values in specified columns to apply aggregate functions.HAVING
): Filtering groups based on specified conditions after aggregation.INSERT INTO
): Adding new rows to a table.UPDATE
): Modifying existing data in a table.DELETE
): Removing rows from a table.CREATE TABLE
): Defining the structure of a new table, including columns and data types.ALTER TABLE
): Modifying an existing table structure (e.g., adding or dropping columns).DROP TABLE
): Deleting a table and all its data.CREATE TABLE
statements below and execute them in the playground to set up the database structure.INSERT INTO
statements and execute them to populate the tables with sample data.WHERE
condition or an ORDER BY
clause?Posted May 2, 2025
Created a one-day guide to learn SQL fundamentals.
0
0