SQL Keywords 101 Flashcards
(160 cards)
ADD
Adds a column in an existing table
ADD CONSTRAINT
Adds a constraint after a table is already created
ALL
Returns true if all of the subquery values meet the condition
ALTER
Adds, deletes, or modifies columns in a table, or changes the data type of a column in a table
ALTER COLUMN
Changes the data type of a column in a table
ALTER TABLE
Adds, deletes, or modifies columns in a table
AND
Only includes rows where both conditions is true
ANY
Returns true if any of the subquery values meet the condition
AS
Renames a column or table with an alias
ASC
Sorts the result set in ascending order
BACKUP DATABASE
Creates a back up of an existing database
BETWEEN
Selects values within a given range
CASE
Creates different outputs based on conditions
CHECK
A constraint that limits the value that can be placed in a column
COLUMN
Changes the data type of a column or deletes a column in a table
CONSTRAINT
Adds or deletes a constraint
CREATE
Creates a database, index, view, table, or procedure
CREATE DATABASE
Creates a new SQL database
CREATE INDEX
Creates an index on a table (allows duplicate values)
CREATE OR REPLACE VIEW
Updates a view
CREATE TABLE
Creates a new table in the database
CREATE PROCEDURE
Creates a stored procedure
CREATE UNIQUE INDEX
Creates a unique index on a table (no duplicate values)
CREATE VIEW
Creates a view based on the result set of a SELECT statement