(/dashboard) Exams (/exams)
You have unlocked the Belt Exam BIG DATA & AI - FUNDAMENTALS Version A
13 Oct 2022 PDT
Zip your exam files and upload it here Provide us your exam video demo
Choose a file to upload Upload Add your video URL Submit
Maximum file size you can upload is 10 MB You can still provide the url even after the given time limit
Track One - Big Data and AI Fundamentals [SDA] Bel
A
1st Task: MySQL Database and SQL Queries
Part One
Consider the ER diagram in the figure below which shows a simplified schema for a production system. Extract from the ER diagram the requir
constraints that produced this schema. Try to be as precise as possible in your requirements and constraints specification.
https://learn.codingdojo.com/exams 13/10/2022, 10 35 PM
Page 1 of 6
:
Important Notes:
Make sure to create the database and add at least three records in each table.
Do not forget to save the .sql file for your submission.
Part Two
Use the employees database that was covers in the sessions to answer the following questions:
Create a function, named “Dept_count”, to take parameter dept_no and show the total number of employees of that department whose contra
between '2000-1-1' and '2000-12-31'. Also, show how to call this function for dept_no=’D001’.
https://learn.codingdojo.com/exams 13/10/2022, 10 35 PM
Page 2 of 6
:
Create a view to show emp_no, first_name, last_name, Salary and dept_no of employees whose salary is less than the average salary of all emp
contract is expiring between '2000-6-1' and '2000-12-31'.
Write the objective of the two queries below in simple plain English:
Select S_ID from STUDENT where S_ID NOT IN
(Select S_ID from STUDENT_COURSE where C_ID IN
(SELECT C_ID from COURSE where C_NAME='DSA' or C_NAME='DBMS'));
CREATE VIEW salPerDept AS
SELECT deptNum, sum(salary)
FROM employees
GROUP BY deptNum
ORDER BY deptNum desc;
Find mistake(s) in the two queries below (syntax and/or logical) and provide the correct query:
Select gender, salary
from (select salaries.salary, employees.gender
from salaries
join employees on employees.emp_no = salaries.emp_no) as x
group by gender;
DELIMITER
CREATE PROCEDURE GetStudentData()
BEGIN $$
SELECT * FROM studentMarks;
END$$
DELIMITER ;
2nd Task: Entity Relationship Diagram Question
Create the ER diagram that produces the database schema from the given requirements and constraints listed below.
Requirements:
Suppose that a database is needed for the online Ticket Railway Reservation System. After analyzing the user’s needs, the requirements for this data
determined to be as follows:
The user record should contain their username, password and security question.
The passengers’ records should contain their name, age, gender, seat no., reservation status, username foreign key references to U_id of User ta
foreign key references to Status_id of Train_Status Table and train id foreign key references to Train_id of Train Table.
The train status should contain status id, wait seat, available seat, booked seat, train id foreign key references to Train_id of Train Table and PNR
references to PNR of Passenger table.
The train records should contain train id, train name, train type, available class and status id, which is foreign key references to status id of Train
To keep track of routes, we need arrival time, departure time, stop numbers, station id foreign key references to Station_id of Station table and
key references to Train_id of Train Table.
The station record should contain station id and station name.
Constraints:
You can observe that a passenger can book many tickets.
Trains are associated with each Train_status.
Trains can route from one route.
Station has a set of routes.
Important Notes:
Use Diagrams (https://app.diagrams.net/), Lucidchart (https://www.lucidchart.com/pages/?
gclid=Cj0KCQjww4OMBhCUARIsAILndv752GP_M2n9gsbc93pgwZDHS-
_jYy6UyJoRb3UW6t4_EgAUd0OwkFEaAqZiEALw_wcB&km_CPC_AdGroupID=57044764032&km_CPC_AdPosition=&km_CPC_CampaignId=1
64262996435&km_CPC_placement=&km_CPC_target=&mkwid=sKCDZ9n49_pcrid_442433231228_pkw_lucid%20charts_pmt_e_pdv_c_slid__
64262996435_&utm_campaign=_chart_en_us_mixed_search_brand_exact_&utm_medium=cpc&utm_source=google), Creately (https://create
other tool to create your ER diagram.
Scanned hand drawings will NOT be accepted.
3rd Task: Data Analytics with MongoDB
Part One
Create a dashboard using European ski resorts dataset (https://drive.google.com/file/d/191LtCRnF4_orih4fG1iNkSsBWmDUB-Cu/view?usp=sha
least 4 different insightful graphs.
https://learn.codingdojo.com/exams 13/10/2022, 10 35 PM
Page 3 of 6
:
Part Two
Using European ski resorts (https://drive.google.com/file/d/191LtCRnF4_orih4fG1iNkSsBWmDUB-Cu/view?usp=shari
Create a pipeline that gets the number of slopes, lifts, and snow cannons per country, as well as resorts per country, and calculates an average
the documents by the number of resorts from highest to lowest.
What are the steps in the pipeline that have to be added in order to get the outcome below:
https://learn.codingdojo.com/exams 13/10/2022, 10 35 PM
Page 4 of 6
:
Part Three
The pipeline below has to retrieve all resorts in Switzerland where the highest point is greater than 2500 meters and include night ski. It has to
cheapest to most expensive price. Find mistakes in the pipeline below (syntax and logical)
https://learn.codingdojo.com/exams 13/10/2022, 10 35 PM
Page 5 of 6
:
Important Notes:
The pipelines you create for the dashboard SHOULD be different than the ones provided in the question.
Create three functions in MongoDB Atlas, one for each pipeline for part two and run them in Jupyter Notebook or Google Colab to verify it is w
Make sure that the name of the function is representative of the query/pipeline objective.
Required Submission
Please include ALL the following in a compressed folder.
Note: you can use this folder (https://drive.google.com/drive/folders/1ycrRCX8B6O95LTR3yiOoGQio-EEz1xy9?usp=sharing) as a guide on how
structure/organize your submission.
General Guidelines:
Submitted folder should be named in this format: FirstName_LastName_Cohort_Number
Example: Amro_Handousa_Cohort_One
1st Task - MySQL Database and SQL Queries
Part One
Submit the EER database schema in MySQL .mwb file.
Submit the .sql file that includes the sample data you have entered.
Submit a PDF the includes the action output from MySQL workbench.
Part Two
Submit the .sql file that includes:
The function and the view.
The plain English description of the two queries as a comment block with each query under its description.
The corrected queries and add the provided query as a comment block.
2nd Task - Entity Relationship Diagram Question
Submit a PDF of the ER diagram.
3rd Task - Data Analytics with MongoDB
Submit a screenshot of your dashboard and call it dashboard_image.
Submit a one-page PDF that explains the insights from your visualizations.
Submit a text file that includes the link to your dashboard and call it dashboard_link.
Submit a text file for EACH pipelines you have created and call it Pipeline_pipelineNumber. For example: Pipeline_One.
For question four, make sure to include in the text file a description of the mistakes you have found.
Submit the Jupyter Notebook or Google Colab file that has the functions.
Privacy Policy
https://learn.codingdojo.com/exams 13/10/2022, 10 35 PM
Page 6 of 6
: