Categories
MySQL

Project Description: “Nutrition tracking is the process of collecting and anal

Swamped with your writing assignments? Take the weight off your shoulder!

Submit your assignment instructions

Project Description:
“Nutrition 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.” 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.
The final project is composed of three parts:
• Part 1: Project proposal (10%)
• Part 2: Project implementation (60%)
• Part 3: Project Presentation (30%)
Part 1 – Project Proposal – due Nov 4th @ 11:59 pm:
What data will your database store? You can list a preliminary set of entities/attributes that will be in the database?
Our database will store data related to :
 Users info (weight , height, age, gender , name)
 Exercise frequency ( daily, never )
 Eating Frequency ( how many times do the user eats)
 Food types ( Proccessed , Organic food, Homemade food)
 Number of drinks an user consume in the day.
 Types of drinks ( sodas, water, organic fruit juice)
 Food consumption day ( example May 22 or June 20)
 Calories intake per meal ( breakfast, lunch, dinner)
 Total calories consumption in a day .
 Weigh result (Gain weight, lose weight , stay fit)
2. List 10 questions (Not SQL) that can be answered by querying the database
(e.g. How many calories did the user
consume on July 12, 2022?).
Ten questions that can be answered by the database are:
 What is the user information: like name, height, weight?
 What kind of food gives more calories?
 How many times the user eat in a day?
 How often do the user practice exercise?
 How much extra calorie did the user consume?
 How much calorie did the user burn?
 What types of drinks has less calorie?
 What is the calorie amount that different types of food gives?
 What is the total calorie that the user consumed in a specific date?
 What will be the change in user’s weight after the calorie intake
Part 2: – Project Implementation – due Nov 27th @ 11:59 pm:
Report 2 Contents:
1) Project goals.
2) Database description: A general description of the database, what data is stored in the database. How the
database will benefit the users.
3) 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.
4) 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 – 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.

Swamped with your writing assignments? Take the weight off your shoulder!

Submit your assignment instructions