Presentation is loading. Please wait.

Presentation is loading. Please wait.

Huffman Trucking Fleet Vehicle Maintenance Database DBM380 June 13, 2012 Learning Team B.

Similar presentations


Presentation on theme: "Huffman Trucking Fleet Vehicle Maintenance Database DBM380 June 13, 2012 Learning Team B."— Presentation transcript:

1 Huffman Trucking Fleet Vehicle Maintenance Database DBM380 June 13, 2012 Learning Team B

2 Jorge Alvarez Mark Miller Dominic Rivera Jared Wells

3 Entities and Attributes Entities and attributes define the columns of data in the database. Entity- the subject of the table, i.e. “Vehicles.”. Attributes- properties that describe the entity, i.e. “Mileage.” Together, entities and attributes become tables organized by columns and rows. Each table will contain a Primary Key (PK). The Entities and Attributes chosen.Entities and Attributes

4 Entity Relationship Diagram (ERD) The ERD for Huffman maintenance shows the relationships between the tables through Crow’s Feet notation. The diagram above shows the types of relationships in the ERD organized by the type of line connecting the tables. The diagram also shows the reference tables and Primary Keys.

5 Database Normalization The types of Normalization are: o First Normal Form (1NF) o Second Normal Form (2NF) o Third Normal Form (3NF) o Boyce-Codd Normal Form (BCNF) o Fourth Normal Form (4NF) o Fifth Normal Form (5NF) o Domain/Key Normal Form (DKNF) Normalization eliminates redundancy and anomalies by reorganizing data. The Huffman Fleet Maintenance Database is normalized to 3NF. Columns and data types are unique. All columns rely on PK. All subsets of data are placed into their own tables. Anything above 4NF is at times too time-consuming and costly.

6 Structured Query Language (SQL) In MySQL, query language is used to INSERT, UPDATE, ALTER, DELETE, and CREATE. ▫CREATE Command - is used to create a database/table.CREATE Command ▫SELECT Command - is used to retrieve data from the database.SELECT Command ▫DELETE Command - is used to delete data from the database.DELETE Command ▫INSERT Command - is used to insert data into a database.INSERT Command ▫UPDATE Command - is used to update the data in a table.UPDATE Command ▫DROP Command - is used to delete or drop the database/table.DROP Command

7 Structured Query Language (SQL) Database Creation Query delimiter $$ CREATE DATABASE `huffman database` /*!40100 DEFAULT CHARACTER SET latin1 */$$ Table Creation Queries Foreign Key Creation Queries Data Insertion and Modification Queries

8 Questions?

9 References Erack Network. (2008) Retrieved June 7, 2012 from http://www.tizag.com/sqlTutorial/sqlqueries.php Interpreting entity-relationship diagrams. (n.d.). Retrieved from http://www.philblock.info/hitkb/i/interpreting_entity- relationship_diagrams.html Kroenke, D. M., & Auer, D. J. (2010). Database concepts (4th ed.). Upper Saddle River, NJ: Pearson/Prentice Hall. Stephens, R. (2009). Beginning database design solutions. Indianapolis, IN: Wiley.


Download ppt "Huffman Trucking Fleet Vehicle Maintenance Database DBM380 June 13, 2012 Learning Team B."

Similar presentations


Ads by Google