This document provides a comprehensive guide to database management for business. It includes topics such as entity relationship diagrams, normalization, relational schema, MySQL database, and more. The document also includes case study requirements and examples. The subject is ISY1002/ISY103 - Database Management for Business.
Contribute Materials
Your contribution can guide someone’s learning journey. Share your
documents today.
Database Management for Business ISY1002/ISY103 Student ID: Student Name: 6/2/2019
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
Group Members ID: Group Members Name: Contents Report..........................................................................................................................................................3 Part A: Entity Relationship Diagram...........................................................................................................3 Case Study Requirements........................................................................................................................3 ER Diagram.............................................................................................................................................4 Part B: Normalization..................................................................................................................................5 Part C: Relational Schema and MySQL database........................................................................................7 Relational Schema...................................................................................................................................7 MySQL Database..................................................................................................................................12 Database Tables.................................................................................................................................13 Database Records..................................................................................................................................18 Part D: SQL...............................................................................................................................................26 References.................................................................................................................................................33 2ISY1002/ISY103 Database Management for Business
Group Members ID: Group Members Name: Report Part A: Entity Relationship Diagram Case Study Requirements 1.A store will have any number of employees. 2.A store will have one manager only. 3.The manager will be the employee of the store. 4.A department will have any number of employees. 5.A department will have one supervisor only. 6.The supervisor will be the employee of the store. 7.An employee can work in only one store. 8.The inventory of all products has to be maintained. 9.The order detail along with date of order has to be maintained. 10.A supplier can deliver any number of products. 11.The ordered quantity of each product till date will be stored into database. 3ISY1002/ISY103 Database Management for Business
Group Members ID: Group Members Name: ER Diagram 4ISY1002/ISY103 Database Management for Business
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Group Members ID: Group Members Name: Order (orderNumber,productNumber, orderDate, quantity, customerNumber) Normalization: 3 NF PaySlip (payslipNumber, workedHours, employeeNumber, storied, grossPay) Normalization: 3 NF All tables are in third normal form because of the following rules- -All tables are having unique pair of data i.e. there is no repeated group. -Fields in the tables depend upon the primary key only. -There is no transitive dependency in any table. (en.tekstenuitleg.net n.d.) (hackr.io 2018) 6ISY1002/ISY103 Database Management for Business
Group Members ID: Group Members Name: Part C: Relational Schema and MySQL database Relational Schema tbEmployee Table Field NameData TypeLengthKey Constraints flemployeeNumberintPrimary Key flfirstNameVarchar20 fllastNameVarchar20 fladdressVarchar50 flmobileVarchar20 flEmailVarchar50 flTFNVarchar20 fljoiningDateDatetime tbFulltimeEmployee Table Field NameData TypeLengthKey Constraints flemployeeNumberintPrimary Key Foreign Key references tbEmployee (flemployeeNumber) flannualSalarydouble tbCasualEmployee Table Field NameData TypeLengthKey Constraints flemployeeNumberintPrimary Key Foreign Key references tbEmployee (flemployeeNumber) flhourlyRatedouble tbDepartment Table Field NameData TypeLengthKey Constraints 7ISY1002/ISY103 Database Management for Business
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
Group Members ID: Group Members Name: flproductNumberVarchar10Primary Key Foreign Key references tbProduct (flproductNumber) florderDateDatetime flquantityint flcustomerNumberintForeign Key references tbCustomer (flcustomerNumber) (Janalta Interactive Inc. 2015) (ApexSQL 2019) 11ISY1002/ISY103 Database Management for Business
Group Members ID: Group Members Name: MySQL Database 12ISY1002/ISY103 Database Management for Business
Group Members ID: Group Members Name: Database Tables describe tbEmployee; +------------------+-------------+------+-----+---------+-------+ | Field| Type| Null | Key | Default | Extra | +------------------+-------------+------+-----+---------+-------+ | flemployeeNumber | int(11)| NO| PRI ||| | flfirstName| varchar(20) | NO|||| | fllastName| varchar(20) | NO|||| | fladdress| varchar(50) | NO|||| | flmobile| varchar(20) | NO|||| | flTFN| varchar(20) | NO|||| | flemail| varchar(50) | NO|||| | fljoiningDate| datetime| NO|||| +------------------+-------------+------+-----+---------+-------+ describe tbFullTimeEmployee; +------------------+---------+------+-----+---------+-------+ | Field| Type|Null | Key | Default | Extra | +------------------+---------+------+-----+---------+-------+ | flemployeeNumber | int(11) |NO| PRI ||| | flannualSalary| double|NO|||| +------------------+---------+------+-----+---------+-------+ describe tbCasualEmployee; +------------------+---------+------+-----+---------+-------+ | Field| Type|Null | Key | Default | Extra | +------------------+---------+------+-----+---------+-------+ | flemployeeNumber | int(11) |NO| PRI ||| | flhourlyRate| double|NO|||| 13ISY1002/ISY103 Database Management for Business
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.