Roadmap:
🔥🔥
LEARN SQL IN 28 DAYS WITH FREE RESOURCES! SQL IS A MUST FOR ALL DATA
CAREERS
➡️Week 1: BASIC SQL
- Introduction to databases and SQL
- Understanding relational databases and tables
- Basic SQL syntax
- SELECT,WHERE, ORDER BY,GROUP BY, COUNT, SUM, AVG, MIN, MAX etc commands
✅
Resources:
✅
SQLZoo (https://sqlzoo.net/):
W3Schools SQL Tutorial (https://www.w3schools.com/sql/)
➡️Week 2: Working with Data
- Joining tables: INNER JOIN, LEFT JOIN, RIGHT JOIN
- Combining multiple conditions: AND, OR, NOT
- Subqueries: using queries inside queries
- Working with strings and dates in SQL
- Updating and deleting data: UPDATE and DELETE statements
- Inserting data into tables: INSERT statement
- Set operations: UNION, INTERSECT, EXCEPT
✅
Resources:
✅
- Mode Analytics SQL Tutorial (https://mode.com/sql-tutorial/):
SQLCourse (https://www.sqlcourse.com/)
➡️Week 3: Database Design and Management
- Database design principles and normalization
- Creating tables: defining columns and data types
- Primary keys, foreign keys, and constraints
- Indexes: improving query performance
- Views: virtual tables for querying
- Transactions: maintaining data integrity
- Database administration tasks: backups, restores, and security
✅
Resources:
SQLBolt (https://sqlbolt.com/):
➡️Week 4: Advanced SQL Concepts
- Common table expressions (CTEs)
- Advanced joins: self-joins, cross joins, natural joins
- Stored procedures and functions
- Triggers: automating actions in the database
- Advanced functions: CASE, COALESCE, NULLIF
- Query optimization and performance tuning
- Advanced data manipulation techniques: pivoting, unpivoting
✅
Resources:
Geeks for Geeks:
https://www.geeksforgeeks.org/30-days-of-sql-from-basic-to-advanced-level/amp/
Keep doing projects after this! Very very IMP✅✅
Projects:
➡️➡️Start with guided projects to get practice:
1) SQL Data Exploration
https://youtu.be/qfyynHBFOsM
2) SQL Data Cleaning
https://youtu.be/8rO7ztF4NtU
✅✅Here are the links to main projects:
1) E-commerce Project (Very Popular)
https://github.com/aaronzguan/Online-Shopping-Cart-Database-Project.git
2) Railway management system
https://github.com/aaryanrr/RailwayMGMT.git
3)Road Safety Dataset
https://github.com/ptyadana/SQL-Data-Analysis-and-Visualization-Projects/
4) European Soccer Game Analysis
https://www.kaggle.com/dimarudov/data-analysis-using-sql/data
5) World Population Dataset
https://github.com/LoicChamplong/Data-Analysis-SQL/tree/master/Analysis_of_the_2015_World
_population
Step 1: Use the datasets shared above
Step 2: Take time to understand the content and structure. Identify key variables and columns.
Step 3: Set up the database: Choose a relational database management system (RDBMS) such
as MySQL, PostgreSQL, or SQLite.
Step 4: Import the data: Load the dataset into your database. Make sure to create appropriate
tables that match the structure of the dataset.
Step 5: Decide the questions: Brainstorm a list of questions you’d like to answer. For example,
you could ask about trends, comparisons, aggregations, or correlations in the data.
Step 6: Write SQL queries: Convert your questions into SQL queries, then test and refine.
Step 7: Upload your project on Github. Also create documentation and powerpoints to explain
your project.
➡️➡️ This will be your portfolio
Leetcode Questions:
Leetcode questions are good to prep for those technical interviews.
Here are 20 for SQL:
1. Combine two tables: https://lnkd.in/dumdCXC7
2. Employees earning > managers: https://Inkd.in/dKqcFmzY
3. Duplicate emails: https://lnkd.in/dJSYfs89
4. Customers who never order : https://lnkd.in/dPZPAKFf
5. Delete duplicate emails: https://lnkd.in/dEKnD9s3
6. Rising temperature: https://lnkd.in/dyZvVYvP
7. Employee bonus: https://Inkd.in/d9iTXt-V
8. Find customer referee : https://lnkd.in/d5cXjXdb
10. Big countries: https://lnkd.in/dAnS54qK
11. Classes more than 5 students : https://lnkd.in/dfrUiutd
12. Sales person: https://lnkd.in/dwRnf5Df
13. Triangle judgement: https://lnkd.in/dwzD-hFn
14. Biggest single number: https://lnkd.in/d4F5zHDs
15. Not boring movies: https://lnkd.in/d5w8_z65
16. Swap salary: https://lnkd.in/dnbCtecM
18. Product sales analysis 1: https://lnkd.in/dRj3EBuK
19. Project employees 1: https://lnkd.in/dvGHsbKQ
20. Sales analysis III : https://lnkd.in/d_y_rxPh
Interview Questions:
https://datalemur.com/
https://www.hackerrank.com/domains/sql
https://gist.github.com/krishnadey30/88c4e2f601e96597974c00185e479532
https://leetcode.com/
https://www.stratascratch.com/
https://www.interviewquery.com/