0% found this document useful (0 votes)
48 views

Database Design

The document discusses database design and introduces some key concepts. It explains that a database stores persistent data and influences software performance. It also discusses how to design databases to maintain a balance between database size and performance. Specifically, it considers storing photo and uploader details in one table versus separate tables to avoid data redundancy.

Uploaded by

Life
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views

Database Design

The document discusses database design and introduces some key concepts. It explains that a database stores persistent data and influences software performance. It also discusses how to design databases to maintain a balance between database size and performance. Specifically, it considers storing photo and uploader details in one table versus separate tables to avoid data redundancy.

Uploaded by

Life
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

Introduction

Introduction

Introduction

Database

DATA DATA

Web Server DATA

Database
Introduction

Database Design and Management 1


Introduction

Database

Database stores
long-term persistent data

Introduction

Database

Example:
MOMENTS online
photo album

Introduction

Database Design and Management 2


Introduction

Database

Persistent data:
- Photos
- Uploaders info.
- Albums
- Upload history
- Comments

Introduction

Database

Database performance
influences
software performance

Introduction

Database Design and Management 3


Introduction

Database

4 sec 0.5 sec


Introduction

Database Design

Database is a blueprint of
your persistent structure

Normalization

Introduction

Database Design and Management 4


Introduction

Database Design - Why

Introduction

Database Design - Why

Introduction

Database Design and Management 5


Introduction

Database Design - Why

Introduction

Database Design - Why

My Tic-Tac-Toe results:
Game 1: Win
Game 2: Win
Game 3: Draw
Game 4: Lost
Game 5: Win

Press any key to continue

Introduction

Database Design and Management 6


Introduction

Database Design - Why

Introduction

Database Design - Why

Introduction

Database Design and Management 7


Introduction

Database Design Goal

Maintain a balance
between DB size &
performance

Introduction

Database Design Goal

How uploader's details


are stored?

Introduction

Database Design and Management 8


Introduction

Database Design Goal Photo and Uploader details in one table

ID Title Uploader Name Uploader PhoneNum Uploader Address

1 The tram Chris Wong 252-608-5628 572 Lost Lake Crossing

2 Little kitten Chris Wong 252-608-5628 572 Lost Lake Crossing

3 Chamomile Chris Wong 252-608-5628 572 Lost Lake Crossing

4 New bus route Wanda A. Allison 808-839-2217 2017 Green Impasse

5 Ferry pier 9 Chris Wong 252-608-5628 572 Lost Lake Crossing

6 The coast Chris Wong 252-608-5628 572 Lost Lake Crossing

7 Rock climbing Wanda A. Allison 808-839-2217 2017 Green Impasse

8 Fountain Chris Wong 252-608-5628 572 Lost Lake Crossing

9 Sunset Wanda A. Allison 808-839-2217 2017 Green Impasse

Database table: Photo

Introduction

Database Design Goal


Access both photo and uploader details
when querying a single record

ID Title Uploader Name Uploader PhoneNum Uploader Address

1 The tram Chris Wong 252-608-5628 572 Lost Lake Crossing

2 Little kitten Chris Wong 252-608-5628 572 Lost Lake Crossing

3 Chamomile Chris Wong 252-608-5628 572 Lost Lake Crossing

4 New bus route Wanda A. Allison 808-839-2217 2017 Green Impasse

5 Ferry pier 9 Chris Wong 252-608-5628 572 Lost Lake Crossing

6 The coast Chris Wong 252-608-5628 572 Lost Lake Crossing

7 Rock climbing Wanda A. Allison 808-839-2217 2017 Green Impasse

8 Fountain Chris Wong 252-608-5628 572 Lost Lake Crossing

9 Sunset Wanda A. Allison 808-839-2217 2017 Green Impasse

Database table: Photo

Introduction

Database Design and Management 9


Introduction

Database Design Goal


However, this may create a
lot of redundant data

ID Title Uploader Name Uploader PhoneNum Uploader Address

1 The tram Chris Wong 252-608-5628 572 Lost Lake Crossing

2 Little kitten Chris Wong 252-608-5628 572 Lost Lake Crossing

3 Chamomile Chris Wong 252-608-5628 572 Lost Lake Crossing

4 New bus route Wanda A. Allison 808-839-2217 2017 Green Impasse

5 Ferry pier 9 Chris Wong 252-608-5628 572 Lost Lake Crossing

6 The coast Chris Wong 252-608-5628 572 Lost Lake Crossing

7 Rock climbing Wanda A. Allison 808-839-2217 2017 Green Impasse

8 Fountain Chris Wong 252-608-5628 572 Lost Lake Crossing

9 Sunset Wanda A. Allison 808-839-2217 2017 Green Impasse

Database table: Photo

Introduction

Database Design Goal

ID Title Uploader ID ID Name PhoneNum Address

1 The tram 1 1 Chris Wong 252-608-5628 572 Lost Lake Crossing

2 Little kitten 1 2 Wanda A. Allison 808-839-2217 2017 Green Impasse

3 Chamomile 1
Database table: Uploader
4 New bus route 2

5 Ferry pier 9 1

6 The coast 1

7 Rock climbing 2

8 Fountain 1
Photo and Uploader details
9 Sunset 2
in separate tables
Database table: Photo

Introduction

Database Design and Management 10


Introduction

Database Design Notations

Entity Relationship Diagram is:


- Language for expressing database
- Visual language
- Facilitate communication
- Presents data structure & inter-
relationships

Entity Relationship Diagram (ERD)

Introduction

Database Design Notations

Entity: Data objects about which


information is to be collected.

Introduction

Database Design and Management 11


Introduction

Database Design Notations

Records of
Photo table

Introduction

Database Design Notations

Separate the Uploader details to be


another entity

Introduction

Database Design and Management 12


Introduction

Database Design Notations

There are two records in the Uploader entity.

Introduction

Database Design Notations

The Photo entity references


the Uploader entity.

Introduction

Database Design and Management 13


Introduction

Course Overview

This course will cover:

Database design

Introduction

Course Overview

This course will cover:

Database generation & reversal

Introduction

Database Design and Management 14


Introduction

Course Overview

This course will cover:

Database design
maintenance (patching)

Introduction

Course Overview

This course will cover:

Data Dictionary

Introduction

Database Design and Management 15


Introduction

Course Overview

Not covered:
How to discover database tables
Normalization
Query database (SQL)

Introduction

Required Software

Standard Edition

Introduction

Database Design and Management 16


Introduction

Required Software

Click to download

Introduction

Required Software

Introduction

Database Design and Management 17


Introduction

Required Software

Supported operating systems:

This training is based on Windows, but also applies to Linux and Mac users.

Introduction

Required Software

Database Management System:

SQL
Server

Introduction

Database Design and Management 18

You might also like