Database/SQL Flashcards
What does SQL stand for?
Structured Query Language
Which component of SQL architecture receives information from a SQL query and from a Parser + Optimizer?
Query Language Processor
Which component of SQL architecture receives information from the Queary Language Processor and from a File Manager + Transaction Manager?
DBMS Engine
Which component of SQL architecture receives information from the DBMS Engine?
Physical Database
What is a field in a DB table that uniquely identifies each row/record?
Primary key
Must primary keys contain unique values?
Yes
Can primary key columns contain NULL values?
No
Can a table have more than one primary key?
No
What is the name for multiple fields in a primary key?
Composite key
If a table has a primary key defined on on any field(s), can there be more than one record with the same value as the field(s)?
No
Also called a referencing key, what is the name of a key that is used to link two tables together?
Foreign key
A foreign key is a column or combination of columns whose values match a ____ in a different table.
Primary key
What are the DDL (Data Definition Language) statements in SQL?
CREATE, ALTER, DROP
What are the DML (Data Maipulation Language) statements in SQL?
SELECT, INSERT, UPDATE, DELETE
What are the DCL (Data Control Language) statements in SQL?
GRANT, REVOKE