Geeks for Geeks SQL-Cheat-Sheet-PDF.pdf
673.2 KB
SQL Cheat Sheet - Geeks for Geeks
Datacamp SQL_for_Data_Science Cheat Sheet.pdf
3.6 MB
SQL for Data Science Cheat Sheet - DataCamp
SQL in 30 Days
Week 1: Beginner Level
Day 1-3: Introduction and Setup
1. Day 1: Introduction to SQL, its importance, and various database systems.
2. Day 2: Installing a SQL database (e.g., MySQL, PostgreSQL).
3. Day 3: Setting up a sample database and practicing basic commands.
Day 4-7: Basic SQL Queries
4. Day 4: SELECT statement, retrieving data from a single table.
5. Day 5: WHERE clause and filtering data.
6. Day 6: Sorting data with ORDER BY.
7. Day 7: Aggregating data with GROUP BY and using aggregate functions (COUNT, SUM, AVG).
Week 2-3: Intermediate Level
Day 8-14: Working with Multiple Tables
8. Day 8: Introduction to JOIN operations.
9. Day 9: INNER JOIN and LEFT JOIN.
10. Day 10: RIGHT JOIN and FULL JOIN.
11. Day 11: Subqueries and correlated subqueries.
12. Day 12: Creating and modifying tables with CREATE, ALTER, and DROP.
13. Day 13: INSERT, UPDATE, and DELETE statements.
14. Day 14: Understanding indexes and optimizing queries.
Day 15-21: Data Manipulation
15. Day 15: CASE statements for conditional logic.
16. Day 16: Using UNION and UNION ALL.
17. Day 17: Data type conversions (CAST and CONVERT).
18. Day 18: Working with date and time functions.
19. Day 19: String manipulation functions.
20. Day 20: Error handling with TRY...CATCH.
21. Day 21: Practice complex queries and data manipulation tasks.
Week 4: Advanced Level
Day 22-28: Advanced Topics
22. Day 22: Working with Views.
23. Day 23: Stored Procedures and Functions.
24. Day 24: Triggers and transactions.
25. Day 25: Security and user privileges.
26. Day 26: Performance tuning and query optimization.
27. Day 27: Introduction to NoSQL databases (optional).
28. Day 28: Working with NoSQL databases (optional).
Day 29-30: Real-World Applications
29. Day 29: Building a simple application that uses SQL.
30. Day 30: Final review and practice, explore advanced topics in depth, or work on a personal project.
Remember to practice regularly, work on small projects, and use online resources and SQL platforms for hands-on experience. Adjust the plan based on your progress and interests, and you'll be well on your way to becoming proficient in SQL!
SQL Resources: https://t.me/SQLResourcesTP
Bookmark this Post for Later Use: https://tinyurl.com/SQLin30Days
Follow this Channel for More Tips:
https://whatsapp.com/channel/0029VahGttK5a24AXAJDjm2R
Week 1: Beginner Level
Day 1-3: Introduction and Setup
1. Day 1: Introduction to SQL, its importance, and various database systems.
2. Day 2: Installing a SQL database (e.g., MySQL, PostgreSQL).
3. Day 3: Setting up a sample database and practicing basic commands.
Day 4-7: Basic SQL Queries
4. Day 4: SELECT statement, retrieving data from a single table.
5. Day 5: WHERE clause and filtering data.
6. Day 6: Sorting data with ORDER BY.
7. Day 7: Aggregating data with GROUP BY and using aggregate functions (COUNT, SUM, AVG).
Week 2-3: Intermediate Level
Day 8-14: Working with Multiple Tables
8. Day 8: Introduction to JOIN operations.
9. Day 9: INNER JOIN and LEFT JOIN.
10. Day 10: RIGHT JOIN and FULL JOIN.
11. Day 11: Subqueries and correlated subqueries.
12. Day 12: Creating and modifying tables with CREATE, ALTER, and DROP.
13. Day 13: INSERT, UPDATE, and DELETE statements.
14. Day 14: Understanding indexes and optimizing queries.
Day 15-21: Data Manipulation
15. Day 15: CASE statements for conditional logic.
16. Day 16: Using UNION and UNION ALL.
17. Day 17: Data type conversions (CAST and CONVERT).
18. Day 18: Working with date and time functions.
19. Day 19: String manipulation functions.
20. Day 20: Error handling with TRY...CATCH.
21. Day 21: Practice complex queries and data manipulation tasks.
Week 4: Advanced Level
Day 22-28: Advanced Topics
22. Day 22: Working with Views.
23. Day 23: Stored Procedures and Functions.
24. Day 24: Triggers and transactions.
25. Day 25: Security and user privileges.
26. Day 26: Performance tuning and query optimization.
27. Day 27: Introduction to NoSQL databases (optional).
28. Day 28: Working with NoSQL databases (optional).
Day 29-30: Real-World Applications
29. Day 29: Building a simple application that uses SQL.
30. Day 30: Final review and practice, explore advanced topics in depth, or work on a personal project.
Remember to practice regularly, work on small projects, and use online resources and SQL platforms for hands-on experience. Adjust the plan based on your progress and interests, and you'll be well on your way to becoming proficient in SQL!
SQL Resources: https://t.me/SQLResourcesTP
Bookmark this Post for Later Use: https://tinyurl.com/SQLin30Days
Follow this Channel for More Tips:
https://whatsapp.com/channel/0029VahGttK5a24AXAJDjm2R
WhatsApp.com
Tech Psyche | WhatsApp Channel
Tech Psyche WhatsApp Channel. Sharing the Latest Technology Updates | Virtual Tech Events and Meetup Updates | Free Tech Courses | Free Tech Resources & Tech Tips and Global Technology Jobs & Opportunities.
For Ads๐
Telegram: https://t.me/mycontactpointโฆ
For Ads๐
Telegram: https://t.me/mycontactpointโฆ
Geeks for Geeks SQL-Cheat-Sheet-PDF.pdf
673.2 KB
SQL Cheat Sheet - Geeks for Geeks
Datacamp SQL_for_Data_Science Cheat Sheet.pdf
3.6 MB
SQL for Data Science Cheat Sheet - DataCamp
*Complete Roadmap to learn SQL in 2025* ๐๐
1. Basic Concepts
- Understand databases and SQL.
- Learn data types (INT, VARCHAR, DATE, etc.).
2. Basic Queries
- SELECT: Retrieve data.
- WHERE: Filter results.
- ORDER BY: Sort results.
- LIMIT: Restrict results.
3. Aggregate Functions
- COUNT, SUM, AVG, MAX, MIN.
- Use GROUP BY to group results.
4. Joins
- INNER JOIN: Combine rows from two tables based on a condition.
- LEFT JOIN: Include all rows from the left table.
- RIGHT JOIN: Include all rows from the right table.
- FULL OUTER JOIN: Include all rows from both tables.
5. Subqueries
- Use nested queries for complex data retrieval.
6. Data Manipulation
- INSERT: Add new records.
- UPDATE: Modify existing records.
- DELETE: Remove records.
7. Schema Management
- CREATE TABLE: Define new tables.
- ALTER TABLE: Modify existing tables.
- DROP TABLE: Remove tables.
8. Indexes
- Understand how to create and use indexes to optimize queries.
9. Views
- Create and manage views for simplified data access.
10. Transactions
- Learn about COMMIT and ROLLBACK for data integrity.
11. Advanced Topics
- Stored Procedures: Automate complex tasks.
- Triggers: Execute actions automatically based on events.
- Normalization: Understand database design principles.
12. Practice
- Use platforms like LeetCode, HackerRank, or learnsql for hands-on practice.
Here are some free resources to learn & practice SQL ๐๐
SQL For Data Analysis: https://t.me/SQLResourcesTP
Udacity free course- https://techurl.in/tYrRG
For Practice- https://stratascratch.com/?via=free
SQL in 30 Days: https://t.me/SQLResourcesTP/6
Top 10 SQL Projects with Datasets: https://t.me/DataScienceResourcesTP/5
Join for more free resources: https://t.me/TechPsyche
Bookmark Post for Later Use: https://tinyurl.com/SQLRoadmap2025
ENJOY LEARNING ๐๐
1. Basic Concepts
- Understand databases and SQL.
- Learn data types (INT, VARCHAR, DATE, etc.).
2. Basic Queries
- SELECT: Retrieve data.
- WHERE: Filter results.
- ORDER BY: Sort results.
- LIMIT: Restrict results.
3. Aggregate Functions
- COUNT, SUM, AVG, MAX, MIN.
- Use GROUP BY to group results.
4. Joins
- INNER JOIN: Combine rows from two tables based on a condition.
- LEFT JOIN: Include all rows from the left table.
- RIGHT JOIN: Include all rows from the right table.
- FULL OUTER JOIN: Include all rows from both tables.
5. Subqueries
- Use nested queries for complex data retrieval.
6. Data Manipulation
- INSERT: Add new records.
- UPDATE: Modify existing records.
- DELETE: Remove records.
7. Schema Management
- CREATE TABLE: Define new tables.
- ALTER TABLE: Modify existing tables.
- DROP TABLE: Remove tables.
8. Indexes
- Understand how to create and use indexes to optimize queries.
9. Views
- Create and manage views for simplified data access.
10. Transactions
- Learn about COMMIT and ROLLBACK for data integrity.
11. Advanced Topics
- Stored Procedures: Automate complex tasks.
- Triggers: Execute actions automatically based on events.
- Normalization: Understand database design principles.
12. Practice
- Use platforms like LeetCode, HackerRank, or learnsql for hands-on practice.
Here are some free resources to learn & practice SQL ๐๐
SQL For Data Analysis: https://t.me/SQLResourcesTP
Udacity free course- https://techurl.in/tYrRG
For Practice- https://stratascratch.com/?via=free
SQL in 30 Days: https://t.me/SQLResourcesTP/6
Top 10 SQL Projects with Datasets: https://t.me/DataScienceResourcesTP/5
Join for more free resources: https://t.me/TechPsyche
Bookmark Post for Later Use: https://tinyurl.com/SQLRoadmap2025
ENJOY LEARNING ๐๐
Telegram
Tech Psyche . Tech Resources . Tech Tips & Tricks . Programming Tutorials, Cheat Sheets, Resources . Udemy Free Coupons Courses
Tech Psyche . Tech Resources . Tech Tips & Tricks . Programming Tutorials, Cheat Sheets, Resources . Udemy Free Coupons Courses
Please go through this top 10 SQL projects with Datasets that you can practice and can add in your resume
๐1. Social Media Analytics:
(https://www.kaggle.com/amanajmera1/framingham-heart-study-dataset)
๐2. Web Analytics:
(https://www.kaggle.com/zynicide/wine-reviews)
๐3. HR Analytics:
(https://www.kaggle.com/pavansubhasht/ibm-hr-analytics-
attrition-dataset)
๐4. Healthcare Data Analysis:
(https://www.kaggle.com/cdc/mortality)
๐5. E-commerce Analysis:
(https://www.kaggle.com/olistbr/brazilian-ecommerce)
๐6. Inventory Management:
(https://www.kaggle.com/datasets?
search=inventory+management)
๐ 7.Customer Relationship Management:
(https://www.kaggle.com/pankajjsh06/ibm-watson-
marketing-customer-value-data)
๐8. Financial Data Analysis:
(https://www.kaggle.com/awaiskalia/banking-database)
๐9. Supply Chain Management:
(https://www.kaggle.com/shashwatwork/procurement-analytics)
๐10. Analysis of Sales Data:
(https://www.kaggle.com/kyanyoga/sample-sales-data)
Small suggestion from my side for non tech students: kindly pick those datasets which you like the subject in general, that way you will be more excited to practice it, instead of just doing it for the sake of resume, you will learn SQL more passionately, since itโs a programming language try to make it more exciting for yourself.
Data Science Resources: https://t.me/DataScienceResourcesTP
WhatsApp Channel: https://whatsapp.com/channel/0029VahGttK5a24AXAJDjm2R
Bookmark Post for Later Use: https://tinyurl.com/SQLProjectsDatasets
Hope this piece of information helps you
๐1. Social Media Analytics:
(https://www.kaggle.com/amanajmera1/framingham-heart-study-dataset)
๐2. Web Analytics:
(https://www.kaggle.com/zynicide/wine-reviews)
๐3. HR Analytics:
(https://www.kaggle.com/pavansubhasht/ibm-hr-analytics-
attrition-dataset)
๐4. Healthcare Data Analysis:
(https://www.kaggle.com/cdc/mortality)
๐5. E-commerce Analysis:
(https://www.kaggle.com/olistbr/brazilian-ecommerce)
๐6. Inventory Management:
(https://www.kaggle.com/datasets?
search=inventory+management)
๐ 7.Customer Relationship Management:
(https://www.kaggle.com/pankajjsh06/ibm-watson-
marketing-customer-value-data)
๐8. Financial Data Analysis:
(https://www.kaggle.com/awaiskalia/banking-database)
๐9. Supply Chain Management:
(https://www.kaggle.com/shashwatwork/procurement-analytics)
๐10. Analysis of Sales Data:
(https://www.kaggle.com/kyanyoga/sample-sales-data)
Small suggestion from my side for non tech students: kindly pick those datasets which you like the subject in general, that way you will be more excited to practice it, instead of just doing it for the sake of resume, you will learn SQL more passionately, since itโs a programming language try to make it more exciting for yourself.
Data Science Resources: https://t.me/DataScienceResourcesTP
WhatsApp Channel: https://whatsapp.com/channel/0029VahGttK5a24AXAJDjm2R
Bookmark Post for Later Use: https://tinyurl.com/SQLProjectsDatasets
Hope this piece of information helps you
Kaggle
Wine Reviews
130k wine reviews with variety, location, winery, price, and description
There has never been a better time to become a data analyst.
Tackle the tools:
* Excel
* SQL
* PowerBI/Tableau
* Python/R
Sharpen these soft skills:
* Communication
* Storytelling
* Critical thinking
* Business acumen
And let your journey begin.
Learn Power BI in 2025: https://t.me/DataAnalysisResourcesTP/7
Tackle the tools:
* Excel
* SQL
* PowerBI/Tableau
* Python/R
Sharpen these soft skills:
* Communication
* Storytelling
* Critical thinking
* Business acumen
And let your journey begin.
Learn Power BI in 2025: https://t.me/DataAnalysisResourcesTP/7
๐๏ธโฃ ๐ฆ๐๐๐๐๐ง, ๐ช๐๐๐ฅ๐, ๐ฎ๐ป๐ฑ ๐ข๐ฅ๐๐๐ฅ ๐๐ฌ
โคท Retrieve data from tables
โคท Filter records with WHERE
โคท Sort results using ORDER BY
๐๏ธโฃ ๐๐ข๐๐ก๐ฆ (๐๐ป๐ป๐ฒ๐ฟ, ๐๐ฒ๐ณ๐, ๐ฅ๐ถ๐ด๐ต๐, ๐๐๐น๐น)
โคท Combine data from multiple tables
โคท Use INNER JOIN for common records
โคท Use LEFT JOIN to keep all left table records
๐๏ธโฃ ๐๐๐๐ฅ๐๐๐๐ง๐๐ข๐ก (๐๐ข๐จ๐ก๐ง, ๐ฆ๐จ๐ , ๐๐ฉ๐, ๐ ๐๐ซ, ๐ ๐๐ก)
โคท Summarize and analyze data
โคท Use GROUP BY for grouped metrics
โคท Filter groups with HAVING
๐๏ธโฃ ๐ฆ๐จ๐๐ค๐จ๐๐ฅ๐๐๐ฆ ๐ฎ๐ป๐ฑ ๐๐ง๐๐
โคท Nested queries for advanced filtering
โคท WITH clause to improve readability
๐๏ธโฃ ๐ช๐๐ก๐๐ข๐ช ๐๐จ๐ก๐๐ง๐๐ข๐ก๐ฆ
โคท Use RANK(), DENSE_RANK(), ROW_NUMBER()
โคท Analyze running totals and moving averages
๐๏ธโฃ ๐๐๐๐๐๐๐๐ก๐๐ฌ ๐ช๐๐ง๐ ๐๐ก๐๐๐ซ๐๐ฆ
โคท Speed up queries using indexing
โคท Understand clustered vs. non-clustered indexes
๐ ๐๐ฆ๐ข๐ณ๐ฏ ๐๐๐ ๐๐๐๐ ๐ธ๐ช๐ต๐ฉ ๐ต๐ฉ๐ฆ๐ด๐ฆ ๐ณ๐ฆ๐ด๐ฐ๐ถ๐ณ๐ค๐ฆ๐ด:
โคท Resources - t.me/sqlresourcestp
โคท ๐๐น๐๐ค๐ฉ๐ฐ๐ฐ๐ญ๐ด - w3schools.com/sql/
โคท Retrieve data from tables
โคท Filter records with WHERE
โคท Sort results using ORDER BY
๐๏ธโฃ ๐๐ข๐๐ก๐ฆ (๐๐ป๐ป๐ฒ๐ฟ, ๐๐ฒ๐ณ๐, ๐ฅ๐ถ๐ด๐ต๐, ๐๐๐น๐น)
โคท Combine data from multiple tables
โคท Use INNER JOIN for common records
โคท Use LEFT JOIN to keep all left table records
๐๏ธโฃ ๐๐๐๐ฅ๐๐๐๐ง๐๐ข๐ก (๐๐ข๐จ๐ก๐ง, ๐ฆ๐จ๐ , ๐๐ฉ๐, ๐ ๐๐ซ, ๐ ๐๐ก)
โคท Summarize and analyze data
โคท Use GROUP BY for grouped metrics
โคท Filter groups with HAVING
๐๏ธโฃ ๐ฆ๐จ๐๐ค๐จ๐๐ฅ๐๐๐ฆ ๐ฎ๐ป๐ฑ ๐๐ง๐๐
โคท Nested queries for advanced filtering
โคท WITH clause to improve readability
๐๏ธโฃ ๐ช๐๐ก๐๐ข๐ช ๐๐จ๐ก๐๐ง๐๐ข๐ก๐ฆ
โคท Use RANK(), DENSE_RANK(), ROW_NUMBER()
โคท Analyze running totals and moving averages
๐๏ธโฃ ๐๐๐๐๐๐๐๐ก๐๐ฌ ๐ช๐๐ง๐ ๐๐ก๐๐๐ซ๐๐ฆ
โคท Speed up queries using indexing
โคท Understand clustered vs. non-clustered indexes
๐ ๐๐ฆ๐ข๐ณ๐ฏ ๐๐๐ ๐๐๐๐ ๐ธ๐ช๐ต๐ฉ ๐ต๐ฉ๐ฆ๐ด๐ฆ ๐ณ๐ฆ๐ด๐ฐ๐ถ๐ณ๐ค๐ฆ๐ด:
โคท Resources - t.me/sqlresourcestp
โคท ๐๐น๐๐ค๐ฉ๐ฐ๐ฐ๐ญ๐ด - w3schools.com/sql/
Languages used by data engineers:
๐SQL
๐Python
๐Scala
๐Pyspark
๐Spark SQL
๐SQL
๐Python
๐Scala
๐Pyspark
๐Spark SQL