0% found this document useful (0 votes)
5 views

SQL Queries

The document outlines various SQL problems and solutions categorized into seven sections, including basic select queries, joins, aggregate functions, sorting and grouping, advanced select and joins, subqueries, and advanced string functions. Each section lists specific SQL tasks such as finding recyclable products, analyzing sales, and managing employee data. This serves as a comprehensive guide for practicing SQL skills and solving common database queries.

Uploaded by

jikih88235
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

SQL Queries

The document outlines various SQL problems and solutions categorized into seven sections, including basic select queries, joins, aggregate functions, sorting and grouping, advanced select and joins, subqueries, and advanced string functions. Each section lists specific SQL tasks such as finding recyclable products, analyzing sales, and managing employee data. This serves as a comprehensive guide for practicing SQL skills and solving common database queries.

Uploaded by

jikih88235
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

SQL queries

ADHIRAJ OJHA
February 2025

SQL Problems and Solutions

1 Basic Select Queries


• Select Recyclable and Low Fat Products

• Find Customer Referee


• Big Countries
• Article Views I
• Invalid Tweets

2 Basic Joins
• Replace Employee ID With The Unique Identifier

• Product Sales Analysis I


• Customer Who Visited but Did Not Make Any Transactions
• Rising Temperature
• Average Time of Process per Machine

• Employee Bonus
• Managers with at Least 5 Direct Reports
• Confirmation Rate

1
3 Basic Aggregate Functions
• Not Boring Movies
• Average Selling Price
• Project Employees I
• Percentage of Users Attended a Contest

• Queries Quality and Percentage

4 Sorting and Grouping


• Number of Unique Subjects Taught by Each Teacher
• User Activity for the Past 30 Days I
• Product Sales Analysis III
• Classes More Than 5 Students

• Find Followers Count

5 Advanced Select and Joins


• Biggest Single Number

• Customers Who Bought All Products


• The Number of Employees Which Report to Each Employee
• Primary Department for Each Employee

6 Subqueries
• Consecutive Numbers
• Employees Whose Manager Left the Company

• Exchange Seats
• Movie Rating
• Restaurant Growth
• Investments in 2016

2
7 Advanced String Functions / Regex / Clause
• Fix Names in a Table
• Patients With a Condition
• Delete Duplicate Emails
• Second Highest Salary

• Group Sold Products By The Date


• List the Products Ordered in a Period

You might also like