SQL is a database language for:
t/f: SQL is a nonprocedural language
true
what does “SQL is a nonprocedural language” mean
user specifies what must be done, but not how
with SQL, ______ isn’t important, only ______ matter
where the data is actually stored, the specified relations and relationships
SQL is an ______ standard
international
2 organizations that define the standard for SQL
ISO is a consortium of how many countries
150
t/f: all relational DBMS software thus supports SQL
true
Different DBMS software that supports SQL
many database vendors have developed
extensions
sql extensions
functions and commands
- basic, simple vocabulary of <100 “words”
- different software may have “dialects” with minor differences
categories of sql commands
data definition language (DDL) and data manipulation language (DML)
data definition language
commands that define a database, including creating, altering, dropping tables and stored procedures, and establishing constraints
(creating database structures)
data manipulation language
commands that are used to manipulate data and extract information
DML can be used for the commands
select, update, insert, delete
DDL primary commands
alter table command impacts
attributes or constraints
3 command types within alter table
example of DDL syntax shows
SQL command keywords and user-provided parameters
**slide 7
DDL data types
ANSI/ISO SQL data types
mysql numeric data types
tinyint, smallint, mediumint, int, bigint, decimal
**slide 10 for ranges
mysql date and time data types
date, datetime
mysql string data types
char(n), varchar(n), blob, text, enum