Intro: SQL (Structured Query Language)
SQL features
- SQL is
a
query
language
- a programming language used to
retrieve information
from a database
|
- SQL is
a
data definition
language
(DDL)
- a programming language used to
define the
data model in
a database
|
- SQL is
a
data manipulation
language
(DML)
- a programming language used to
insert/update/delete
data
stored in
a database
|
- SQL is
a
view definition
language
(VDL)
|
A note on SQL output:
bags (with
duplicates)
- Important note:
- By default
SQL
will
not remove
duplicate tuples (= rows)
in the output
|
Example:
SELECT name FROM depedent
name
----------
Alice
Theodore
Joy
Abner
Micheal
Alice
Elizabeth
|
- Reason:
- Detecting
duplicate rows will
require
additional processing
- It is
more efficient
to leave duplicates alone.
|
|
Extend of coverage of
SQL in
CS554
- Features in
SQL (programming) language:
- Data definition
- Query (SELECT)
- Data update (INSERT, DELETE, UPDATE)
- View definition
|
- Features
used (and reviewed) in
CS554:
- Query (SELECT)
- View definition
|
|
❮
❯