Skip to content

rajifaruq2021-hue/wk-6

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“ Assignment: Joins and Relationships

🎯 Learning Objectives

  • βž• Understand and implement INNER JOIN, LEFT JOIN, and RIGHT JOIN in SQL.
  • πŸ‘¨β€πŸ’» Retrieve data from multiple related tables using SQL queries.
  • πŸ”— Explore relationships between different tables (e.g., employees, products, orders).
  • πŸ’» Practice real-world SQL scenarios that involve combining tables and retrieving relevant data.

πŸ“‹ What You'll Need

  • πŸ’» A computer with internet access.
  • ✍️ A code editor (e.g., Visual Studio Code).
  • πŸ–₯️ MySQL Workbench or another SQL database environment.

πŸ“ Submission Instructions

πŸ“‚ Write all your SQL queries in the answers.sql file.
✍️ Answer each question concisely and make sure your queries are clear and correct.
πŸ—£οΈ Structure your responses clearly, and use comments if necessary to explain your approach.


πŸ“š Assignment Questions

Question 1 πŸ§‘β€πŸ’Ό

Write an SQL query to get the firstName, lastName, email, and officeCode of all employees.
Use an INNER JOIN to combine the employees table with the offices table using the officeCode column.


Question 2 πŸ›οΈ

Write an SQL query to get the productName, productVendor, and productLine from the products table.
Use a LEFT JOIN to combine the products table with the productlines table using the productLine column.


Question 3 πŸ“¦

Write an SQL query to retrieve the orderDate, shippedDate, status, and customerNumber for the first 10 orders.
Use a RIGHT JOIN to combine the customers table with the orders table using the customerNumber column.


Good luck πŸš€

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published