IS 4420 Database Fundamentals Introduction To SQL Leon Chen
IS 4420 Database Fundamentals Introduction To SQL Leon Chen
IS 4420 Database Fundamentals Introduction To SQL Leon Chen
Database Fundamentals
Chapter 7:
Introduction to SQL
Leon Chen
1
Systems
Development Life
Cycle
Project Identification
and Selection
Project Initiation
and Planning
Analysis
Logical Design
Physical Design
Implementation
Maintenance
Database
Development
Process
Enterprise modeling
Conceptual data
modeling
Logical database design
Physical database
design and definition
Database
implementation
Database maintenance
Overview
SQL Overview
SQL Environment
Catalog
Schema
String types
Numeric types
Date/time type
11
12
Non-nullable specifications
Primary key
Domain constraint
15
Foreign key of
dependent table
16
17
18
Materialized View
19
Advantages of Views
Disadvantages of Views
22
* is the wildcard
23
Schema Definition
Choice of indexes
File organizations for base tables
File organizations for indexes
Data clustering
Statistics maintenance
Creating indexes
25
Insert Statement
26
27
28
29
30
Delete Statement
31
Update Statement
32
SELECT Statement
SELECT
FROM
HAVING
GROUP BY
WHERE
ORDER BY
33
34
SELECT Example
Product table
35
36
SELECT Example
Using a Function
38
39
SELECT Example
Sorting Results with the ORDER BY
Clause
40
SELECT Example
Categorizing Results Using the GROUP BY
Clause
SELECT STATE, COUNT(STATE)
FROM CUSTOMER_V
GROUP BY STATE;
Note: you can use single-value fields with
aggregate functions if they are included
in the GROUP BY clause
Customer table
41
SELECT Example
Qualifying Results by Categories
Using the HAVING Clause
42