Question
MYSQL question - Generating mysql statements. Listed below are the tables for the scheduling database followed by contents: Next are the steps in which need
MYSQL question - Generating mysql statements. Listed below are the tables for the scheduling database followed by contents:
Next are the steps in which need to be completed based on the tables and information given above. Database: scheduling.
Task One: Find all the meetings that Tom Hanks has to attend Construct the SQL statement to find all the meetings that Tom Hanks has to attend. Display the following columns: - Persons first name (person table) - Persons last name (person table) - Building name (building table) - Room number (room table) - Meeting start date and time (meeting table) - Meeting end date and time (meeting table)
Task Two: Find all the people that are attending meeting ID 2. Construct the SQL statement to find all the people that are attending meeting ID 2. Display the following columns: - Persons first name (person table) - Persons last name (person table) - Building name (building table) - Room number (room table) - Meeting start date and time (meeting table) - Meeting end date and time (meeting table)
Task Three: Find all the people who have meetings in the Main Street building. Construct the SQL statement to find all the people who have meetings in the Main Street building. Display the following columns: Persons first name (person table) Persons last name (person table) Building name (building table) Room number (room table) Meeting ID (meeting table) Meeting start date and time (meeting table) Meeting end date and time (meeting table)
Task Four: Find the number of attendees for every meeting. Construct the SQL statement to find the number of attendees for every meeting. Display the following columns: Count of meeting attendees Meeting ID (meeting table) Meeting start date and time (meeting table) Meeting end date and time (meeting table)
Task Five: Find All of the People that Have Meetings Only Before Dec. 25, 2016 at Noon Using INNER JOIN. Construct the SQL statement to find all of the people that have meetings only before Dec. 25, 2016 at noon using INNER JOIN. Display the following columns: Persons first name (person table) Persons last name (person table) Meeting ID (meeting table) Meeting start date and time (meeting table) Meeting end date and time (meeting table)
mysql> SHOW TABLES; | Tables_in_scheduling | building meeting person | person_meeting room 5 rows in set (0.01 sec)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started