SQL Roadmap
SQL Roadmap
Week-1
First week learn basics of SQL: what is SQL, application, database, tables, data types,
create, update, delete, filter, operators and sort values
i
id
SQL Topics Resources
Database Concepts (Database, DBMS, Data
https://youtu.be/pVKT4N-Cgb8?si=L399JHfwFAU4Pb
Models, RDBMS and SQL)
gD
Data Types, Primary-Foreign Keys &
Constraints
VW
https://youtu.be/unREmbNASaI?si=HOO-iOy6KCWK
7sTu
https://www.youtube.com/watch?v=4YAAgrm8_ZI
Operators + Order By + Limit
Sample Questions
C
● What is SQL and Database, example primary key vs foreign key, types of operators,
etc. ● SELECT list of employees whose salary ranges between 2L to 3L.
● Write a query to retrieve the list of employees from the same city.
● Query to find the null values in the Employee table.
Practice SQL
After completing week-1 topics,
● Go to HackerRank and solve SQL questions - Click here
Week - 2
INTERMEDIATE SQL
Second week : Import file, SQL functions & types, String functions, Aggregate functions,
Group By, Having clause and date time functions
SQL Topics Resources
Import Excel (CSV) File https://www.youtube.com/watch?v=ftlJoXEBmis
i
id
Aggregate Functions https://www.youtube.com/watch?v=9NfthspfXEo
gD
W3schools website to learn SQL
Sample Questions
https://www.w3schools.com/sql/
● What is a Function in SQL, types of functions, user-defined function, how to import files,
in
explain String/Aggregate functions, what is group by and its use, where vs having, etc. ●
Find the male and female employees’ ratio; fetch 50% of records from the Employee
table.
od
● Query to fetch the employee’s salary but replace the LAST 2 digits with
‘XX’. ● Query to find all the Employee names whose name
starts/ends/contains. ● Write a query to find and remove duplicate records
from a table.
C
Practice SQL
After completing week-2 topics,
i
W3schools website to learn SQL https://www.w3schools.com/sql/
id
Sample Questions
● What is a SQL JOIN, types of JOINS, UNION vs UNION ALL, SELF JOIN, CROSS
Practice SQL
After completing week-3 topics,
Sample Questions
● Explain CTE and its use cases. What is a WITH clause? What is a recursive CTE?
i
Explain CASE expressions and stored procedures along with their use cases. Explain
id
triggers, etc
● Find the 2nd & 3rd highest salary for each project from the Emp table. ● Create groups
based on the salary column (low, med, high) according to the salary range.
gD
● Query to pivot the data in the Employee table and retrieve the total salary for each city.
● Find the total monthly salary based on the team/project they are working on. ● Write a
stored procedure to retrieve the name of the employee based on their ID using the output
parameter as @Name.
Practice SQL
in
After completing week-4 topics,
HackerRank https://www.hackerrank.com/domains/sql
leetcode https://leetcode.com/studyplan/top-sql-50/
Related Resources:
i
id
Follow @codingdidi –
Instagram https://www.instagram.com/codingdidi/
Youtube https://youtube.com/@codingdidi?si=TkcPMdGsgV8z61lh
gD
Linkedin www.linkedin.com/in/akansha-yadav24
in
od
C