Welcome to Divex Consult!
Introduction to SQL
Creating Records
SQL Syntax
Aggregation and Grouping Functions in SQL
Types of Keys and Joins in SQL
SQL Practices and Concepts
Mentorship with Elizabeth
SQL 4 – Assignment
PRACTICE QUESTIONS FOR SUB-MODULE 4
Instructions for Practice Questions
To effectively practice SQL joins, use the provided dataset, which includes the following tables:
- Customers (customer details)
- Orders (order transactions)
- Products (electronic product details)
Your Task:
- Use SQL queries to answer each practice question.
- Write and execute your SQL code using Microsoft SQL Server or any preferred SQL environment.
- Ensure your queries retrieve the correct data based on the given scenarios.
- If needed, modify or expand your queries to explore additional insights.
Reminder: Always reference the dataset structure to correctly use column names in your queries.
Happy Querying!
QUESTIONS
- Write an SQL query to find the number of orders placed by each customer.
- Write an SQL query to find the total revenue generated for each product in the Orders table.
- Write an SQL query to find customers who have spent more than $5000 in total orders
EXTRACT THE SCRIPT OF YOUR QUERY AND UPLOAD.