- β 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.
- π» A computer with internet access.
- βοΈ A code editor (e.g., Visual Studio Code).
- π₯οΈ MySQL Workbench or another SQL database environment.
π 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.
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.
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.
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 π