0% found this document useful (0 votes)
3 views5 pages

SQL Learning Plan

The document outlines a 7-day SQL learning plan covering topics from basic SQL syntax to advanced concepts like joins and data manipulation. Each day includes specific topics, activities for practice, and additional tips for mastering SQL. It also provides a list of medium to hard SQL exercises for practical application.

Uploaded by

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

SQL Learning Plan

The document outlines a 7-day SQL learning plan covering topics from basic SQL syntax to advanced concepts like joins and data manipulation. Each day includes specific topics, activities for practice, and additional tips for mastering SQL. It also provides a list of medium to hard SQL exercises for practical application.

Uploaded by

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

Day 1: Introduction to SQL

Topics: What is SQL, SQL syntax, and basic commands (SELECT, FROM, WHERE)
Activities:
Read an introductory article or watch a video on SQL basics.
Practice writing simple SELECT queries to retrieve data from a single table.

Day 2: Data Filtering and Sorting


Topics: WHERE clause, logical operators (AND, OR, NOT), ORDER BY
Activities:
Learn how to filter data using the WHERE clause.
Practice combining conditions with AND, OR, and NOT.
Sort data using ORDER BY.

Day 3: Aggregate Functions and Grouping


Topics: COUNT, SUM, AVG, MIN, MAX, GROUP BY, HAVING
Activities:
Understand how to use aggregate functions to summarize data.
Group data using GROUP BY and filter groups with HAVING.
Practice writing queries with aggregate functions and grouping.

Day 4: Joins
Topics: INNER JOIN, LEFT JOIN, RIGHT JOIN, FULL JOIN
Activities:
Learn the different types of joins and their use cases.
Practice writing queries that join multiple tables.

Day 5: Subqueries and Nested Queries


Topics: Subqueries in SELECT, WHERE, and FROM clauses
Activities:
Understand how to use subqueries to perform complex queries.
Practice writing nested queries.

Day 6: Data Manipulation


Topics: INSERT, UPDATE, DELETE
Activities:
Learn how to insert, update, and delete data in a database.
Practice writing data manipulation queries.

Day 7: Advanced Topics and Practice


Topics: Indexes, Views, Transactions, Stored Procedures
Activities:
Get an overview of advanced SQL topics.
Practice writing complex queries and review all topics covered during the week.
Take a mock test or complete a project to apply your knowledge.
Additional Tips
Practice Daily: Consistent practice is key to mastering SQL.
Use Online Resources: Websites like W3Schools, Codecademy, and LeetCode offer great practice prob
Join a Community: Engage with online forums or study groups to discuss SQL problems and solutions.
Good luck with your learning journey! If you have any questions or need further assistance, feel free t
SELECT BETWEEN
SELECT DISTINCT ALIASES
WHERE JOINS
ORDERBY INNER JOIN
AND LEFT JOIN
OR RIGHT JOIN
NOT RIGHT JOIN
INSERT INTO FULL JOIN
NULL VALUES SELF JOIN
UPDATE UNION
DELETE GROUP BY
SELECT TOP HAVING
MIN AND MAX EXISTS
COUNT ANY, ALL
SUM SELECT INTO
AVG INSERT INTO SELECT
LIKE CASE EXPRESSION
WILDCARDS NULL FUNCTIONS
IN STORED PROCEDURES
COMMENTS
OPERATORS
CREATE DATABASE
DROP DATABASE
BACKUP DATABASE
CREATE TABLE
DROP TAB;E
ALTER TABLE
CONSTRAINTS
NOT NULL
UNIQUE
PRIMARY KEY
FOREIGN KEY
CHECK
DEFAULT
CREATE INDEX
AUTOINCREMENT
DATES
VIEW
INJECTION
HOSTING
DATA TYPES
Sure! Here are 10 medium to hard SQL exercises for your EmployeeDB database:
1. List all employees: Write a query to list all employees with their details from the Employees table.
2. Find employees in a specific department: Write a query to find all employees who work in the 'Sales
3. Calculate average salary by department: Write a query to calculate the average salary for each dep
4. Find employees who joined in the last year: Write a query to find all employees who joined the com
5. List products sold by each employee: Write a query to list all products sold by each employee.
6. Find the total sales amount for each employee: Write a query to find the total sales amount for eac
7. List employees with their managers: Write a query to list all employees along with their managers'
8. Find departments with more than 5 employees: Write a query to find all departments that have mo
9. List products not sold in the last month: Write a query to list all products that were not sold in the la
10. Find the highest-paid employee in each department: Write a query to find the highest-paid employ

You might also like