This lesson lists and explains all standard SQL keywords, including those not supported in our playground environment. Unsupported features are clearly marked so users know what to expect.
SQL Keywords Table Structure and Constraints
Keyword Description Playground Support Notes ADD
Adds a column to an existing table SupportedADD CONSTRAINT
Adds a constraint to an existing table Partially supported (some constraint types may not work)ALTER
Modifies table structure (columns, types) SupportedALTER COLUMN
Changes a column’s data type or properties SupportedALTER TABLE
Adds, deletes, or modifies columns SupportedCHECK
Limits the value range of a column Not enforced in some playgroundsCOLUMN
Used with ALTER TABLE
to reference a column SupportedCONSTRAINT
Used to define a rule for a column or table Not all constraint types supportedDEFAULT
Sets a default value for a column Supported in CREATE TABLE
, but behavior may varyDROP COLUMN
Deletes a column from a table SupportedDROP CONSTRAINT
Removes constraints like PRIMARY KEY
, UNIQUE
, etc. Limited supportNOT NULL
Ensures a column cannot have NULL values SupportedPRIMARY KEY
Uniquely identifies records in a table SupportedFOREIGN KEY
Links a column to another table’s key Not enforced in all playgroundsUNIQUE
Ensures all values in a column are different Supported
SQL Keywords Data Definition (DDL)
Keyword Description Playground Support Notes CREATE
Creates tables, views, indexes, etc. SupportedCREATE DATABASE
Creates a new database Not supported in our playgroundCREATE INDEX
Adds an index to improve query speed SupportedCREATE OR REPLACE VIEW
Updates or replaces a view Not supportedCREATE PROCEDURE
Defines a stored procedure Not supportedCREATE TABLE
Creates a new table SupportedCREATE UNIQUE INDEX
Creates an index that ensures unique values SupportedCREATE VIEW
Defines a virtual table SupportedDATABASE
Refers to the current or another database Not supported in playground (single DB only)DROP
Deletes tables, views, databases, etc. SupportedDROP DATABASE
Deletes an entire database Not supportedDROP DEFAULT
Removes a default constraint Might not apply depending on syntax supportDROP INDEX
Deletes an index SupportedDROP TABLE
Deletes a table SupportedDROP VIEW
Deletes a view SupportedEXEC
Executes a stored procedure Not supportedPROCEDURE
Refers to stored procedures Not supportedTABLE
Refers to a table for DDL or DML commands SupportedTRUNCATE TABLE
Deletes all rows, keeps structure Not supported in our playground
SQL Keywords Data Manipulation (DML)
Keyword Description Playground Support Notes INSERT INTO
Adds new rows to a table SupportedINSERT INTO SELECT
Copies rows from one table to another SupportedUPDATE
Modifies existing records SupportedSET
Assigns values in an UPDATE
SupportedDELETE
Removes rows from a table SupportedVALUES
Provides values for an INSERT
Supported
SQL Keywords Query and Filtering
Keyword Description Playground Support Notes SELECT
Retrieves data from one or more tables SupportedSELECT DISTINCT
Returns unique values only SupportedSELECT INTO
Creates a new table from a SELECT
SupportedSELECT TOP
Limits rows returned (T-SQL) Use LIMIT
insteadWHERE
Filters rows by condition SupportedAND
Combines conditions (both must be true) SupportedOR
Combines conditions (either can be true) SupportedNOT
Negates a condition SupportedIN
Checks if a value is in a list SupportedBETWEEN
Checks if a value is within a range SupportedLIKE
Searches for a pattern using wildcards SupportedIS NULL
Tests for NULL values SupportedIS NOT NULL
Tests for non-NULL values SupportedEXISTS
Tests for subquery existence SupportedCASE
Conditional logic in queries SupportedAS
Renames a column or table with an alias Supported
SQL Keywords Joins and Subqueries
Keyword Description Playground Support Notes JOIN
Combines rows from two or more tables SupportedINNER JOIN
Returns matching rows in both tables SupportedLEFT JOIN
Returns all from left table + matched right SupportedRIGHT JOIN
Returns all from right table + matched left SupportedFULL OUTER JOIN
Returns all rows with matches in either table Not supported in our playgroundOUTER JOIN
General outer join syntax Not supportedANY
Returns true if any subquery values match SupportedALL
Returns true if all subquery values match Supported
SQL Keywords Aggregates and Grouping
Keyword Description Playground Support Notes GROUP BY
Groups rows for aggregate functions SupportedHAVING
Filters groups (used with aggregates) SupportedORDER BY
Sorts result set by one or more columns SupportedASC
Sorts in ascending order SupportedDESC
Sorts in descending order Supported
SQL Keywords Set Operations
Keyword Description Playground Support Notes UNION
Combines SELECT results, no duplicates SupportedUNION ALL
Combines SELECT results, includes duplicates Supported
SQL Keywords Limits and Rows
Keyword Description Playground Support Notes LIMIT
Limits the number of returned rows SupportedTOP
Limits rows (T-SQL style) Use LIMIT
insteadROWNUM
Oracle-style row limiting Not supported
SQL Keywords Labs