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 ADDAdds a column to an existing table ✅ Supported ADD CONSTRAINTAdds a constraint to an existing table ⚠️ Partially supported (some constraint types may not work) ALTERModifies table structure (columns, types) ✅ Supported ALTER COLUMNChanges a column’s data type or properties ✅ Supported ALTER TABLEAdds, deletes, or modifies columns ✅ Supported CHECKLimits the value range of a column ⚠️ Not enforced in some playgrounds COLUMNUsed with ALTER TABLE to reference a column ✅ Supported CONSTRAINTUsed to define a rule for a column or table ⚠️ Not all constraint types supported DEFAULTSets a default value for a column ⚠️ Supported in CREATE TABLE, but behavior may vary DROP COLUMNDeletes a column from a table ✅ Supported DROP CONSTRAINTRemoves constraints like PRIMARY KEY, UNIQUE, etc. ⚠️ Limited support NOT NULLEnsures a column cannot have NULL values ✅ Supported PRIMARY KEYUniquely identifies records in a table ✅ Supported FOREIGN KEYLinks a column to another table’s key ⚠️ Not enforced in all playgrounds UNIQUEEnsures all values in a column are different ✅ Supported
SQL Keywords Data Definition (DDL)
Keyword Description Playground Support Notes CREATECreates tables, views, indexes, etc. ✅ Supported CREATE DATABASECreates a new database ❌ Not supported in our playground CREATE INDEXAdds an index to improve query speed ✅ Supported CREATE OR REPLACE VIEWUpdates or replaces a view ❌ Not supported CREATE PROCEDUREDefines a stored procedure ❌ Not supported CREATE TABLECreates a new table ✅ Supported CREATE UNIQUE INDEXCreates an index that ensures unique values ✅ Supported CREATE VIEWDefines a virtual table ✅ Supported DATABASERefers to the current or another database ❌ Not supported in playground (single DB only) DROPDeletes tables, views, databases, etc. ✅ Supported DROP DATABASEDeletes an entire database ❌ Not supported DROP DEFAULTRemoves a default constraint ⚠️ Might not apply depending on syntax support DROP INDEXDeletes an index ✅ Supported DROP TABLEDeletes a table ✅ Supported DROP VIEWDeletes a view ✅ Supported EXECExecutes a stored procedure ❌ Not supported PROCEDURERefers to stored procedures ❌ Not supported TABLERefers to a table for DDL or DML commands ✅ Supported TRUNCATE TABLEDeletes all rows, keeps structure ❌ Not supported in our playground
SQL Keywords Data Manipulation (DML)
Keyword Description Playground Support Notes INSERT INTOAdds new rows to a table ✅ Supported INSERT INTO SELECTCopies rows from one table to another ✅ Supported UPDATEModifies existing records ✅ Supported SETAssigns values in an UPDATE ✅ Supported DELETERemoves rows from a table ✅ Supported VALUESProvides values for an INSERT ✅ Supported
SQL Keywords Query and Filtering
Keyword Description Playground Support Notes SELECTRetrieves data from one or more tables ✅ Supported SELECT DISTINCTReturns unique values only ✅ Supported SELECT INTOCreates a new table from a SELECT ✅ Supported SELECT TOPLimits rows returned (T-SQL) ❌ Use LIMIT instead WHEREFilters rows by condition ✅ Supported ANDCombines conditions (both must be true) ✅ Supported ORCombines conditions (either can be true) ✅ Supported NOTNegates a condition ✅ Supported INChecks if a value is in a list ✅ Supported BETWEENChecks if a value is within a range ✅ Supported LIKESearches for a pattern using wildcards ✅ Supported IS NULLTests for NULL values ✅ Supported IS NOT NULLTests for non-NULL values ✅ Supported EXISTSTests for subquery existence ✅ Supported CASEConditional logic in queries ✅ Supported ASRenames a column or table with an alias ✅ Supported
SQL Keywords Joins and Subqueries
Keyword Description Playground Support Notes JOINCombines rows from two or more tables ✅ Supported INNER JOINReturns matching rows in both tables ✅ Supported LEFT JOINReturns all from left table + matched right ✅ Supported RIGHT JOINReturns all from right table + matched left ✅ Supported FULL OUTER JOINReturns all rows with matches in either table ❌ Not supported in our playground OUTER JOINGeneral outer join syntax ❌ Not supported ANYReturns true if any subquery values match ✅ Supported ALLReturns true if all subquery values match ✅ Supported
SQL Keywords Aggregates and Grouping
Keyword Description Playground Support Notes GROUP BYGroups rows for aggregate functions ✅ Supported HAVINGFilters groups (used with aggregates) ✅ Supported ORDER BYSorts result set by one or more columns ✅ Supported ASCSorts in ascending order ✅ Supported DESCSorts in descending order ✅ Supported
SQL Keywords Set Operations
Keyword Description Playground Support Notes UNIONCombines SELECT results, no duplicates ✅ Supported UNION ALLCombines SELECT results, includes duplicates ✅ Supported
SQL Keywords Limits and Rows
Keyword Description Playground Support Notes LIMITLimits the number of returned rows ✅ Supported TOPLimits rows (T-SQL style) ❌ Use LIMIT instead ROWNUMOracle-style row limiting ❌ Not supported
SQL Keywords Labs