This document discusses the creation of an address book database system. It provides guidance on methodologies for modeling data like data flow diagrams and entity relationship diagrams. It also outlines requirements like storing a person's name, address, city, state, zip code, date, and phone number in an addressbook table. Finally, it shows the SQL code to create this addressbook table and a phonebook view that selects the name, phone number from the table.
This document discusses the creation of an address book database system. It provides guidance on methodologies for modeling data like data flow diagrams and entity relationship diagrams. It also outlines requirements like storing a person's name, address, city, state, zip code, date, and phone number in an addressbook table. Finally, it shows the SQL code to create this addressbook table and a phonebook view that selects the name, phone number from the table.
This document discusses the creation of an address book database system. It provides guidance on methodologies for modeling data like data flow diagrams and entity relationship diagrams. It also outlines requirements like storing a person's name, address, city, state, zip code, date, and phone number in an addressbook table. Finally, it shows the SQL code to create this addressbook table and a phonebook view that selects the name, phone number from the table.
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;