Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Lab Tasks:Read Three Table join under Module 8 to attempt the 3 a and 3 b of Lab 7 1 . Using MySQL Workbench: Create
Lab Tasks:Read Three Table join under Module to attempt the a and b of Lab Using MySQL Workbench: Create a new schema for this lab and import LabDBsql Create a second new schema for this lab and import deptemp.sql Following the steps in Lab : Reverse engineer the first newly created schema. Reverse engineer the second newly created schema.These new models will be needed to perform the following tasks.Before proceeding with tasks and analyze the data in each of the tables and familiarize yourself with the two models For the LabDB schema, complete the following requirements:a Display the professor name, professor program, student first and last names from the studend and professor tables. Referring to the model created in step determine the PKFK relationships to build the SQL joining the three tables. Sort the data by professor name then by student last name. A document called Three Table Join for referenceb Display the professor name and students first and last names who are being mentored. The output should be sorted by professors name, students last name then first name. The Mentor column on the studentprofessor table determines if a student is being mentored; value of no yes.c Display all columns from the professor table where the professor is identified as a mentor in the studentprofessor table. A subquery is to be used to determine the mentor status of a professor. For the deptemp schema, complete the following requirements:a Display all contents from the Departments and Employees tables, only employees who are assigned to a department should be displayed.b Using the same SQL as a modify it to include employees who are not yet assigned to a department.c Using the same SQL as a modify it to include departments who do not yet have any employees working in it
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