You are on page 1of 8

Creating a System

CMSC-461
Database Management Systems

Gary L. Burt 05/02/98 1


Methodologies

Data Flow Diagrams


Entity Relationship Diagram
State Transition Diagram
Pseudocode
Class Hierarchy

Gary L. Burt 05/02/98 2


Methodologies (II)

Waterfall
Iterative
RAD
Prototyping

Gary L. Burt 05/02/98 3


Requirements
Definition
Determine required attributes
Determine logical model
Normalization process
Physical model
Performance considerations
Capacity planning

Gary L. Burt 05/02/98 4


Address Book

We want to create an address book with


the following information in it:
name
address (need two lines)
city
state
zip
date of information
phone number

Gary L. Burt 05/02/98 5


Guidance
For each object you create, put the SQL into a
separate file.
For this class, put items into files named as:
all SQL statements <object_name>.sql
all PL/SQL statements <procedurename>.pl
all data <tablename>.dat
all control <table>.ctl
Hardcopy of all of these files must be included in
the package you turn in for the final project.

Gary L. Burt 05/02/98 6


Create the Table
addressbook.sql
CREATE TABLE addressbook
(
fname CHAR(25),
lname CHAR(25),
address1CHAR(25),
address2CHAR(25),
city CHAR(25),
state CHAR(2),
zip CHAR(10)
date DATE,
phonenr CHAR(12)
);

Gary L. Burt 05/02/98 7


Create a View
phonebook.sql
CREATE VIEW phonebook AS
SELECT fname, lname, phonenr
FROM addressbook;

Gary L. Burt 05/02/98 8

You might also like