Chapter 6: Fundamentals of SQL Flashcards
creates a database schema
create schema authorization
creates a new table in the user’s database schema
create table
ensures that a column will not have null values
not null
ensures that a column will not have duplicate values
unique
defines a primary key for a table
primary key
defines a foreign key for a table
foreign key
defines a default value for a column (when no value is given)
default
validates data in an attribute
check
creates an index for a table
create index
creates a dynamic subset of rows and columns from one or more tables
create view
modifies a table’s definition (adds, modifies, or deletes attributes or consrtraints)
alter table
creates a new table based on a query in the user’s database schema
create table as
permanently deletes a table (and its data)
drop table
permanently deletes an index
drop index
permanently deletes a view
drop view