SQL
HTML
CSS
JavaScript
jQuery
PHP
WordPress
SQL Reference

Quick Reference

This is a quick reference list of SQL keywords and how they are used to write SQL statements.

SQL – AS Keyword

The AS keyword is used to output a column or table with a temporary alias for the duration of the query. Nothing in the database itself is altered.

SQL – BETWEEN Keyword

The BETWEEN keyword is used to select values (numbers, text, or dates) within a given range (inclusively).

SQL – EXISTS Keyword

The EXISTS keyword tests for the existence of any record in a subquery, and returns “true” if the subquery returns one or more records.

SQL – GROUP BY Keywords

The GROUP BY keywords are used to group the result set (used with aggregate functions: COUNT, MAX, MIN, SUM, AVG).

SQL – IN Keyword

The IN keyword allows you to specify multiple values in a WHERE clause, and is shorthand for multiple OR conditions.

SQL – LEFT JOIN Keywords

The LEFT JOIN keywords return all rows from the left table, and the matching rows from the right table (NULL from the right side if there is no match).

SQL – LIKE Keyword

The LIKE keyword is used in a WHERE clause to search for a specified pattern in a column. It can use two wildcards: % and _.

SQL – NOT Keyword

The NOT keyword is used with other SQL keywords to only include rows where a condition is NOT true.

SQL – NOT NULL Keywords

The NOT NULL keywords enforces a column to NOT accept NULL values (a record cannot be inserted/updated without adding a value to that field).

SQL – ORDER BY Keywords

The ORDER BY keywords are used to sort the result set using a specified column in ascending order (A – Z) or descending (Z – A) order.

SQL – PRIMARY KEY Keywords

The PRIMARY KEY keywords uniquely identifies each record in a table, which can have only one primary key consisting of a single field or multiple fields.

SQL – RIGHT JOIN Keywords

The RIGHT JOIN keywords returns all rows from the right table, and the matching rows from the left table (NULL from the left side if there is no match).

SQL – SET Keyword

The SET keyword is used with UPDATE to specify which columns and values should be updated in a table.

SQL – USE Keyword

The USE keyword specifies the database you intend to work with. The statement is often made when starting work on or switching to a particular database.

SQL – WHERE Keyword

The WHERE keyword filters a result set to include only records that fulfill a specified condition or set of conditions.

We’d like to acknowledge that we learned a great deal of our coding from W3Schools and TutorialsPoint, borrowing heavily from their teaching process and excellent code examples. We highly recommend both sites to deepen your experience, and further your coding journey. We’re just hitting the basics here at 1SMARTchicken.

SQL
HTML
CSS
JavaScript
jQuery
PHP
WordPress

Why 1SMARTchicken?

This site was built and is maintained to benefit my autistic son.
See More →

My Son's Name is Johnny

He was diagnosed as autistic quite late, at age four...
His story

Buy Me a Coffee

Thanks for your support!

Feedback

If you see an error on the page or the code itself is incorrect or incomplete, or just plain wrong, please let us know. We’re always learning. NOTE: we do not sell your information and will not send you spam emails.