In this case study, your team is asked to design and implement the database component of a website for Toronto attractions and events. Few wireframe screens were made during the requirements analysis of the project and those screens will be your main source of information on the entities, attributes and relationships between the entities.
Below are the required tasks from your group
We are going to match the above rules with our tables to ensure that our database tables are in third-normal-form:
First Normal Form
In order to convert our entities into first-normal-form Noh, et al (2018), says, we are required to answer this question: are the columns combined make exceptional record at every time and which column is used to uniquely identify the row? To answer this, let’s look at our tables below:
Dinner (Din_ID, Din_Title, Din_Description, Din_Price)
Visitor (Vis_ID,Vis_Name,Vis_Gender,Vis_Address, Vis_Country,Vis_Visit_Date)
Attraction (Attraction_ID, Attraction_Description, Operation_Hours, Admission_Amount, Attraction_Type)
Employee (Emp_ID, Emp_Username, Emp_Password, Emp_Name,Emp_Gender,Emp_Address,
Emp_Country)
Event (Event_ID,Event_Title,Location,Event_Type,Event_Time,Event_Date, Admission_Amount)
Movies (Movie_ID,Movie_Title, Movie_Description,Genre,Year,Director,Language,Show_Time, Rating)
Restaurant (Res_ID, Res_Title, Res_Description,Res_Location,Res_Price_Range,Res_Rating)
The answer to the first and second part the question is YES. Reason being that, all the columns combined together make a unique row at every moment due to use of primary key.
Second normal form
For any entity to pass 2NF, it has to pass 1NF test and each non-primary key doesn’t functionally depend on PK. Keenly observing our tables above, we notice that each entities has passed 1NF. However, for the second condition, every entity fulfils this rule except for visitor and employee tables.
Employee (Emp_ID, Emp_Username, Emp_Password, Emp_Name, Emp_Gender, Emp_Address, Emp_Country)
Visitor (Vis_ID,Vis_Name,Vis_Gender,Vis_Address, Vis_Country,Vis_Visit_Date)
These two entities have address field which does not specify which kind of address we are talking about. Therefore, we are going to have address entity arranged as below:
Address (Address_ID,Personal_email_address, Compnay_address, Street, City, Zipcode) whereas the other two tables will have a new look as below
Employee (Emp_ID, Emp_Username, Emp_Password, Emp_Name, Emp_Gender, Emp_Country)
Visitor (Vis_ID,Vis_Name,Vis_Gender, Vis_Country,Vis_Visit_Date)
Third Normal Form
A db is said to be in third-normal-form if and only if it satisfies 2NF requirements and doesn’t have any transitive functional dependency. For instance, field A determines field B which determines field C. Looking at our tables none of them has this characteristic, thus our db is in 3NF.
Normalized Logical model(See clear drawing in attached Ms.Vis1o)
SQL Data Types
Jukic, Vrbsky, & Nestorov, (2016), insists that every column in a database entity must have a data type and a name. A database developer must make a decision on what type of data will be stored inside every column during the creation of an entity. Letkowski, (2015), seconds that data type is a guide for Structured Query Language to understand what kind of data is to be kept inside every column.
In our database design, we used the following datatypes:
CHAR (size) to hold fixed length string.
VARCHAR (size): to hold varying length string
Decimal (size,d): used to store large number stored as a string.
Date(): used to store date format
Time (): to indicate time of the day.
Year (): used to store year in 2-digit or 4-digit format.
SQL Scripts to Create tables
Address table
CREATE TABLE Address(
Address_ID varchar (4) NOT NULL UNIQUE,
Personal_email_Address varchar (20),
Compnay_address varchar(20),
Street varchar (20),
City varchar(20),
Zipcode varchar(12),
PRIMARY KEY (Address_ID);
Employe Table
CREATE TABLE Employee(
Emp_ID varchar(4) NOT NULL UNIQUE,
Emp_Username varchar (12),
Emp_Password varchar(6),
Emp_Name varchar (30),
Emp_Gender varchar(6),
Emp_Country varchar(20),
PRIMARY KEY (Emp_ID));
Visitor Table
CREATE TABLE Visitor(
Vis_ID varchar(4) NOT NULL UNIQUE,
Vis_Name varchar (20),
Vis_Gender varchar(6),
Vis_Country varchar (20),
Vis_Date Date,
PRIMARY KEY (Vis_ID),
CHECK (Vis_Gender = "Male" or "Female"));
Dinner Table
CREATE TABLE Dinner (
Din_ID varchar(4) NOT NULL UNIQUE,
Din_Title varchar (20),
Din_Description varchar(100),
Din_Price Dec (3,2),
PRIMARY KEY (Din_ID));
CREATE TABLE Attraction (
Attraction_ID varchar(4) NOT NULL UNIQUE,
Attraction_Description varchar (100),
Operation_Hours Time,
Attraction_Type varchar(20),
Admission_Amount Dec(3,2),
PRIMARY KEY (Attraction_ID));
Event Table
CREATE TABLE Event (
Event_ID varchar(4) NOT NULL UNIQUE,
Event_Title varchar (30),
Location varchar(20),
Event_Type varchar(20),
Event_Time Time,
Event_Date Date,
Admission_Amount dec (3,2),
PRIMARY KEY (Event_ID));
Movies Table
CREATE TABLE Movies(
Movie_ID varchar(4) NOT NULL UNIQUE,
Movie_Title varchar(20),
Movie_Description varchar(100),
Genre varchar(50),
Published_Year Year(4),
Director varchar(20),
Language varchar(20),
Rating Dec (2,1),
PRIMARY KEY (Movie_ID));
Restaurant Table
CREATE TABLE Restaurant(
Res_ID varchar(4) NOT NULL UNIQUE,
Res_Title varchar(20),
Res_Description varchar(100),
Res_Location varchar(20),
Res_Price_Range dec(3,2),
Res_Rating dec(2,1),
PRIMARY KEY (Res_ID));
SQL Statements to Insert Into Table
INSERT INTO Restaurant
VALUES ('R001', 'NileValley', 'NileValley bla bla bla', 'Santiago Street', '$78.02-100.00','7.5');
INSERT INTO Movies
VALUES ('M001', 'The Running Dead', 'The running dead is a fictious bla bla bla', 'Fiction', '2014','Liutenantoro', 'English','9.1');
INSERT INTO Event
VALUES ('EV01', 'Twisted Beginning ', 'MaliMA','Art', '9.00AM', '16/8/2018', '$23.90')
INSERT INTO Attraction
VALUES ('AT01', 'Gallery Ma Bla bla bla bla', '8.00Am to 5p.m','Gallery', '$34.03');
INSERT INTO Dinner
VALUES ('D001', 'Salmi', 'Salmi is a meal bla bla bla. It is taken together wiht bla bla','$45.30');
INSERT INTO Visitor
VALUES ('V001', 'Marcos Luis', 'Male','North Korea','12/08/2018');
INSERT INTO Employee
VALUES ('E001', 'Tony','Pasword','Tony Mike','Male','Australia');
INSERT INTO Address
VALUES ('A001', '[email protected]ail.com', '[email protected]','Ti1','Toronto','00200');
SQL statements to select required Values
SELECT * FROM employee;
SELECT * FROM visitor;
SELECT * FROM dinner;
SELECT * FROM Attraction;
SELECT * FROM event;
SELECT * FROM movies;
SELECT * FROM Restaurant;
SELECT * FROM Address;
Armbrust, M., Xin, R. S., Lian, C., Huai, Y., Liu, D., Bradley, J. K., ... & Zaharia, M. (2015, May). Spark sql: Relational data processing in spark. In Proceedings of the 2015 ACM SIGMOD International Conference on Management of Data(pp. 1383-1394). ACM.
Bittorf, M. K. A. B. V., Bobrovytsky, T., Erickson, C. C. A. C. J., Hecht, M. G. D., Kuff, M. J. I. J. L., Leblang, D. K. A., ... & Yoder, M. M. (2015). Impala: A modern, open-source SQL engine for Hadoop. In Proceedings of the 7th Biennial Conference on Innovative Data Systems Research.
Chou, H. M. (2016). F4K Database Schema. Fish4Knowledge: Collecting and Analyzing Massive Coral Reef Fish Video Data, 303.
Coronel, C., & Morris, S. (2016). Database systems: design, implementation, & management. Cengage Learning.
Eessaar, E. (2016). The database normalization theory and the theory of normalized systems: finding a common ground. Baltic Journal of Modern Computing, 4(1), 5.
Jukic, N., Vrbsky, S., & Nestorov, S. (2016). Database systems: Introduction to databases and data warehouses. Prospect Press.
Keith, M., Schincariol, M., & Nardone, M. (2018). Using Queries. In Pro JPA 2 in Java EE 8 (pp. 269-311). Apress, Berkeley, CA.
Kramer, F., & Thalheim, B. (2016). Holistic Conceptual and Logical Database Structure Modeling with ADOxx. In Domain-Specific Conceptual Modeling (pp. 269-290). Springer, Cham.
Letkowski, J. (2015). Doing database design with MySQL. Journal of Technology Research, 6, 1.
Noh, H. N., Bahari, M., & Zakaria, N. H. (2018). A Conceptual Model of Database Normalization Courseware Using Gamification Approach. In PROCEEDINGS OF NEW ACADEMIA LEARNING INTo export a reference to this article please select a referencing stye below:
My Assignment Help. (2021). Database Design And Implementation. Retrieved from https://myassignmenthelp.com/free-samples/dbas27198-database-design-and-implementation/every-time.html.
"Database Design And Implementation." My Assignment Help, 2021, https://myassignmenthelp.com/free-samples/dbas27198-database-design-and-implementation/every-time.html.
My Assignment Help (2021) Database Design And Implementation [Online]. Available from: https://myassignmenthelp.com/free-samples/dbas27198-database-design-and-implementation/every-time.html
[Accessed 17 April 2021].
My Assignment Help. 'Database Design And Implementation' (My Assignment Help, 2021) <https://myassignmenthelp.com/free-samples/dbas27198-database-design-and-implementation/every-time.html> accessed 17 April 2021.
My Assignment Help. Database Design And Implementation [Internet]. My Assignment Help. 2021 [cited 17 April 2021]. Available from: https://myassignmenthelp.com/free-samples/dbas27198-database-design-and-implementation/every-time.html.
Gone are the days when you had nightmares of failing to secure marks in math assignments. If you are considering, “Will someone do my math homework?" you are incredibly fortunate. PhD experts at MyAssignmnethelp.com will help you out with your algebra, calculus, geometry etc. Math homework help is efficient with proofreading backup to check for mistakes. Math solvers offer swift assistance so that the students can submit the assignment on time. Moreover, you will also gain insight into approaching a particular question. Thus, grab the opportunity to end your quest of finding 'someone to do my math for me’.
Answer: The database given was normalized to achieve a better database. Normalization of the database involved following the following steps; Ensuring no entity has any repeating groups to normalize the relations to 1NF. Ensuring all entities achieved as a result of normalization to 1NF have no partial dependencies thus normalizing them to 2NF. This involves making sure that an entity has only one candidate key that the other keys depend o...
Read MoreAnswer: The database should be able to store the details of all the courses in the system and each course in the system should be identified with a unique identity that would be helpful in distinguishing the different entries in the tables. The database should be able to store the details of all the students each data should be identified by a unique identification key. The database should be able to store the details of the enro...
Read MoreAnswer: Part 1: Use Case Realisation for the ‘Record New Tour’ Use Case 1.1 Analysis Class Diagram: In the paradigm of software engineering, the class diagram is a part of UML that represents the static structure of an application. The class diagram, as the name suggests, represents the classes of the application. These classes has attributes and operations. The class diagram are mainly used for describing the element...
Read MoreAnswer: Assumption: - A APPLIED_STAFF has many QUALIFICATION_DETAIL and a QUALIFICATION_DETAIL is related to many APPLIED_STAFF. Here many too many relationships occur. So I create a new table that is STAFF_QUALIFICATION. Here a staff has one or many STAFF_QUALIFICATION and each STAFF_QUALIFICATION is related to one and only one APPLIED_STAFF. A qualification is related to one or many STAFF_QUALIFICATION and each STAFF_QUALIFICATION is ...
Read MoreAnswer: Introduction Racism and humiliation has been one of the biggest curses in the modern society. This has really become a widely spread problem in almost all the countries of the world. The children are not spared of it as well. The aim of the following essay will be develop an understanding of the impact of the racism and humiliation in the several schools of Canada. Canada has always been a multilingual country with great many people c...
Read MoreJust share requirement and get customized Solution.
Orders
Overall Rating
Experts
Our writers make sure that all orders are submitted, prior to the deadline.
Using reliable plagiarism detection software, Turnitin.com.We only provide customized 100 percent original papers.
Feel free to contact our assignment writing services any time via phone, email or live chat. If you are unable to calculate word count online, ask our customer executives.
Our writers can provide you professional writing assistance on any subject at any level.
Our best price guarantee ensures that the features we offer cannot be matched by any of the competitors.
Get all your documents checked for plagiarism or duplicacy with us.
Get different kinds of essays typed in minutes with clicks.
Calculate your semester grades and cumulative GPa with our GPA Calculator.
Balance any chemical equation in minutes just by entering the formula.
Calculate the number of words and number of pages of all your academic documents.
Our Mission Client Satisfaction
It is a good source of help for any assignment. My order completed before the deadline, and rework have done for the assignment. It is quite expensive for the students. wishes for better deal regards roh
Australia
Great help and great service! I was concerned it wouldn't get to me on time, but sure enough, it was on time! This saved my rear. Thanks, you guys are awesome
Australia
Great paper. It was very detailed and everything was what was necessary for the paper.
Australia
seems ok to me, but once you forward the assignment it take 2 weeks for the feedback, then I will know if they are ok, so please do all the rest as well, if some answer are not ok they will ask to do it again
Australia