Nutrition Tracking Database
Description
Project Description:
µtrition tracking is the process of collecting and analyzing qualitative or quantitative data on your dietary intake
patterns, typically for the purpose of achieving health-related or fitness-related goals.®bsp;Intake
In this project, you will design and implement a nutrition-tracking database. This database will help the users to track the
food and drinks they consume. The stored data includes but not limited to, food names, quantities, calories, consumption
date and time, workout sessions and any other information you find related to the project.
Data model & design:
o Completed ER/EER diagram, 5 tables minimum.
? MUST use https://www.draw.io to draw the ER diagram, and then take a snapshot.
? Include a snapshot of the diagram in the report.
o Business rules.
o Data dictionary: For each one of the tables, list columns, data types, column restrictions, column
descriptions.
Implementation:
o Use MySQL Server and MySQL Workbench to create the database/tables.
? Include a snapshot of the SQL code in your report
o Populate the each table with a minimum of 20 rows of sample data. Make sure the entered data is
descriptive (not just random numbers and letters.
? Include a snapshot of the SQL code in your report.
o Use MySQL Server and MySQL Workbench to write/run all of the SQL queries below. For each query,
provide the following in Report 2:
? Snapshot of the code and the output in the report.
? In about 2 lines, explain what the query returns.
Queries:
? 1 trivial query. Simple select with ordering.
? 2 medium difficulty queries. Queries that use composite condition for selection, computations,
aggregate function and grouping.
? 1 query that uses subquery.
? 2 queries that uses join (1 inner join, 1 left or right outer join).
? 1 view (query must use join ®bsp;hint: you can use one of the queries from the previous question).
? 1 query that uses union.
? 1 custom stored function.
? 1 custom stored procedure.
Unformatted Attachment Preview
A snapshot of the SQL code
Queries:
1 trivial query. Simple select with ordering.
This query list the parents last name by the order.
2 medium difficulty queries. Queries that use composite condition for
selection, computations, aggregate function and grouping.
i.
These queries display the selection of teachers who teaches English.
ii.
These queries display the selection of teachers who teaches math.
1 query that uses subquery.
These queries display the number of failed students.
1 query that uses union.
These queries display the common data between two table.
1 view (query must use join (int: you can use one of the queries from
the previous question).
2 queries that uses join (1 inner join, 1 left or right outer join).
Inner join
This query display the common elements of the two table.
Left join
This query joins the rows from left table.
1 custom stored function.
This query uses the salary stored function.
1 custom stored procedure.
This query displays the custom (getallstudent) stored procedure
References
Data, M. H., & User, G. (2015). Database Design. Perancangan Basis Data) merupakan salah
satu.
Leone, S., Hunt, E., Hodel, T., Bb%n, M. H., & Dittrich, K. R. (2006, September). Design and
implementation of a document database extension. In CEUR Workshop Proceedings (pp.
144-157). Alexander Technological Educational Institute of Thessaloniki.
Purchase answer to see full
attachment
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."