Lecture notes and databases

Click on a title to see the list of topics in that chapter. Use the download links to get lecture handouts in PDF format or lecture slides in PPT format. For some topics ou can also get a database to which the notes refer. Databases should open in Microsoft WebMatrix

1. Databases and database design

Download - notes | slides

Contents
What is a database?
Databases vs. Database Management Systems
Relational and other database systems
Databases and enterprise information systems
The language of relational databases – SQL
Popular relational database systems
Designing a database
The  data model
From data model to relational database

2. Creating a database

Download - notes | slides

Contents
Designing the database schema
Representing Classes and Attributes
Data types
Additional constraints
Choosing the right fields
Implementing a table in SQL
Inserting data into a table
Primary keys
Representing relationships
Altering a table

3. Getting data out: database queries

Download - notes | slides | database

Contents
Querying
Queries and use cases
The GCUTours database tables
Queries in Access
Project operations
Select operations
Date formats in queries
Aggregates
Grouping
Subqueries

4. Improving the database design

Download - notes | slides

Contents
Database normalisation
Problems with un-normalised data
Functional dependencies
Normalisation and normal forms
First normal form (or 1NF)
Second Normal Form (2NF)
Third normal form (3NF)
Summing up the first three normal forms
Higher normal forms
When to use normalisation

5. Doing more with queries

Download - notes | slides

Contents
Improving query performance with indexes
Joining tables
Different kinds of join
Data definition queries
Insert queries
Update queries
Delete queries
Parameter queries

6. Building applications

Download - notes | slides | database

Contents
Databases and applications
Types of application
Database servers
Web applications with WebMatrix
Reports
Connecting to databases

Some notes are in PDF format - you may need Adobe Reader to view and print them. You can download it using the link below:

Get Adobe Reader