Sie sind auf Seite 1von 9

Planning and

Designing a
Database
Module 2
Objectives

To determine the appropriate inputs for database


To be able to know the application of SQL programming
language
To be able to perform a variety of SQL operations
Module Overview

Determining proper data inputs for your database


Data Definition
Data Refinement
Lesson 1: Planning and Designing a
Database

Planning stage involves identifying the information that the


user/clients need

How the information can be accessed and how they should


look when printed
Determining Proper Data Inputs for Database

Data Definition - is the stage where we gather and list all


necessary fields for our database.

Think of all the data that are needed to store in database.

Example: Library System the fields needed in the three


tables are shown below (see the next slide).
Library System

Student Information Books Information Transactions Information

Student ID:
Book ID: Transaction ID:
Name:
Title: Borrower ID:
Home Phone:
Subject:
Year Level and Section: Borrower Name:

Book ID:

Book Title:

Date Borrowed:

Due Date:
Determining Proper Data Inputs for Database

Data Refinement break down some fields to more


specific fields to store information in the smallest logical
parts.

Student Information Books Information Transactions Information

Student ID: Book ID:


Transaction ID:
Last Name: Title:
Borrower ID:
First Name: Subject:

Notes: Book ID:


Home Phone:

Year Level: Date Borrowed:

Section: Due Date:


Demonstration: Creating Relationships

After creating the table structure of database:


The need for a way of telling your database how to bring
that information back together again.

This is done by establishing relationships between tables in


which it analyze the tables more closely .

Create a relationship between tables to be able to view and


access records from both tables.
Lab: Planning and Designing a Database

Exercise 1: Review Questions


Exercise 2: Plan and design your own database of Colegio
de San Juan de Letrans Collegiate Library System and its
Main Switchboard.

Estimated Time: 60 minutes

Das könnte Ihnen auch gefallen