Relational Database Project

Verified

Added on  2020/03/16

|5
|538
|84
Project
AI Summary
This project involves the design and implementation of a relational database using MySQL. It includes identifying entities and attributes, creating an ER diagram, designing a relational schema, and normalizing the database to the third normal form. The project also covers the insertion of data and running queries to fetch data from the database.
Document Page
Running head: RELATIONAL DATABASE
Relational Database
Name of the Student:
Name of the University:
Author Note
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
1
RELATIONAL DATABASE
1. Approach for the modelling Exercise
For the modelling exercise the entities are to be identified from provided case study and also
attributes for each of the entities are identified for the solution. After the identification of the
entities it is also very important to identify the primary keys that were identified for the entities
in the system. After the identification of the entities the ER Diagram of the system is designed.
In addition to this, the Relation schema are also designed for the systems. The main entities that
are identified in the system are vehicles, clients, salesperson, manufacturer and sale. In addition
to this, the main primary key identified for each of the entities are vehiclesId, ClientsId,
SalespersonId, ManufacturerId and SaleId. After the relational schema that are designed the
tables that were defined in the relation schema are being normalized to the third normal forma
and also the relational schema is being reconstructed. After the reconstruction of the tables of the
database the actual database is being implemented using MySQL. After the implementation of
the database are completed the data are inserted into the database and it is saved. The database
would be ready where the queries can be run to fetch the data.
2. ER Diagram
Document Page
2
RELATIONAL DATABASE
3. Relational Schema
Vehicles (vehicleId (primarykey), chasisNumber (primarykey), manufacturerName, colour,
Price, Model, discount, engineCapacity, extras, Description, Used/Unused)
Salesperson (salespersonId (primarykey), salespersonName, sAdresss)
Document Page
3
RELATIONAL DATABASE
Manufacturer (ManufacturerId (primarykey), manufacturerName, address, addressType
telephone, industry rank)
Clients (clientId (primarykey), clientName, cAdresss)
Sale (SaleId (primarykey), vehicleId (foreignkey), Description, ClientId (foreignkey),
ClientName, salespersonId (foreignkey), Price)
4. Supplementary Data
In additional to the relational schema the additional information about the database are provided
here. It is known that the addressType would have a constrain in which the input is only of four
types. The Used/Used field in the Vehicles table is a binary having only two types of input.
5. Assumptions
It is assumed both the data for the used cars and the unused cars are maintained in the same table.
Hence only a single table is maintained for the vehicles in the database. The used and unused
field in the database is used for indicating whether the car is used or unused.
Bibliography
Bornea, M.A., Dolby, J., Kementsietsidis, A., Srinivas, K., Dantressangle, P., Udrea, O. and
Bhattacharjee, B., 2013, June. Building an efficient RDF store over a relational database. In
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
4
RELATIONAL DATABASE
Proceedings of the 2013 ACM SIGMOD International Conference on Management of Data (pp.
121-132). ACM.
Elmasri, R. and Navathe, S.B., 2015. Fundamentals of database systems. Pearson.
chevron_up_icon
1 out of 5
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]