Question: PART TWO SQL practices ( challenges ) Question: Write five queries where you use any of the following joins: 1 . INNER JOIN 2 .
PART TWO SQL practiceschallenges
Question: Write five queries where you use any of the following joins:
INNER JOIN
LEFT OUTER JOIN
RIGHT OUTER JOIN
Full OUTER JOIN
For each query, you must:
Come up with a scenario from the Student Schema where this join would be necessary.
Clearly state the question you are answering eg include the attribute you need to display
Write the SQL statement that solves the question.
Provide the expected output based on the given data.
Rubric points per query:
Scenario points: The scenario is realistic and clearly explains why this type of join is needed.
Question points: The question clearly specifies which attributes to display
SQL Statement points: The SQL query correctly implements the specified join with accurate syntax.
Output points: The expected output is clearly shown and matches what the query would produce.
Example Breakdown:
Example Scenario for LEFT OUTER JOIN:
Scenario: You want to list all students and the sections they are enrolled in including students who have not yet enrolled in any section.
Question: Display StudentId FirstName, LastName, and SectionId for all students.
SQL statement here
o xxx
Output is here
o xxx
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
