Josep Ferrer
banner
rfeers.bsky.social
Josep Ferrer
@rfeers.bsky.social
150 followers 20 following 860 posts
Data Scientist & Tech Writer KDnuggets, DataCap, TDS & Medium | Outstand using data - Data Science, AI and Tech | Join 6k data professionals reading databites.tech ๐Ÿงฉ
Posts Media Videos Starter Packs
Did you like this post?

Then join the DataBites newsletter to get weekly issues about Data Science and more! ๐Ÿงฉ

๐Ÿ‘‰๐Ÿป databites.tech
15. ๐—”๐—ฑ๐˜ƒ๐—ฎ๐—ป๐—ฐ๐—ฒ๐—ฑ ๐—ฆ๐—ค๐—Ÿ ๐—ง๐—ฒ๐—ฐ๐—ต๐—ป๐—ถ๐—พ๐˜‚๐—ฒ๐˜€
For seasoned users, explore sophisticated SQL features:
โ€ข Windows Functions, Recursive Queries
โ€ข Pivot/Unpivot Operations, Common Table Expressions (CTE)
The two final steps is learning how to craft better and more optimized SQL queries.

14. ๐—ฃ๐—ฒ๐—ฟ๐—ณ๐—ผ๐—ฟ๐—บ๐—ฎ๐—ป๐—ฐ๐—ฒ ๐—ข๐—ฝ๐˜๐—ถ๐—บ๐—ถ๐˜‡๐—ฎ๐˜๐—ถ๐—ผ๐—ป
Techniques to enhance the efficiency of your queries:
โ€ข Query Analysis, Optimizing JOINS, Reducing Subqueries
13. ๐——๐—ฎ๐˜๐—ฎ ๐—œ๐—ป๐˜๐—ฒ๐—ด๐—ฟ๐—ถ๐˜๐˜† ๐—ฎ๐—ป๐—ฑ ๐—ฆ๐—ฒ๐—ฐ๐˜‚๐—ฟ๐—ถ๐˜๐˜†
Now that you are here, I strongly recommend you get familiar with security best practices. Maintain the security and integrity of your database:
โ€ข Using GRANT and REVOKE
โ€ข Database Security Best Practices
Now you should focus on crafting better queries by leveraging indexes and following best security practices ๐Ÿ’ฅ

12. ๐—ข๐—ฝ๐˜๐—ถ๐—บ๐—ถ๐˜‡๐—ถ๐—ป๐—ด ๐˜„๐—ถ๐˜๐—ต ๐—œ๐—ป๐—ฑ๐—ฒ๐˜…๐—ฒ๐˜€
Indexes improve query performance:
โ€ข Unique, Clustered, and Non-Clustered Indexes
Once a result is good, you might want to create a view!
11. ๐—ช๐—ผ๐—ฟ๐—ธ๐—ถ๐—ป๐—ด ๐˜„๐—ถ๐˜๐—ต ๐—ฉ๐—ถ๐—ฒ๐˜„๐˜€
Views can simplify complex queries:
โ€ข Creating, Modifying, and Dropping Views
Now you should understand advanced syntax like specific functions and new ways of merging data like UNION.

10. ๐—”๐—ฑ๐˜ƒ๐—ฎ๐—ป๐—ฐ๐—ฒ๐—ฑ ๐—ฆ๐˜†๐—ป๐˜๐—ฎ๐˜…
Explore more complex SQL operations:
โ€ข UNION, INTERSECT, EXCEPT
โ€ข CASE, COALESCE, and Functions for NULL Handling
Your SQL skills here are already really good!! ๐Ÿ™Œ๐Ÿป
But learning must go onโ€ฆ

9. ๐—Ÿ๐—ฒ๐˜ƒ๐—ฒ๐—ฟ๐—ฎ๐—ด๐—ถ๐—ป๐—ด ๐—ฆ๐˜‚๐—ฏ๐—พ๐˜‚๐—ฒ๐—ฟ๐—ถ๐—ฒ๐˜€
As queries keep getting more complex, you need to create subqueries.
โ€ข Nested and Correlated Subqueries
โ€ข EXISTS and NOT EXISTS
Our data will usually be spread across many different tables, this is why being able to merge data from different sources is crucial in SQL.

8. ๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ๐—ถ๐—ป๐—ด ๐—๐—ข๐—œ๐—ก๐˜€
JOINs are critical for combining data from multiple tables:
โ€ข INNER, LEFT, RIGHT, and FULL OUTER JOINs
๐Ÿ‘‰๐Ÿป This will be one of the most important steps when creating KPIs and specific metrics.

7. ๐—˜๐—ป๐—ณ๐—ผ๐—ฟ๐—ฐ๐—ถ๐—ป๐—ด ๐—–๐—ผ๐—ป๐˜€๐˜๐—ฟ๐—ฎ๐—ถ๐—ป๐˜๐˜€
Ensure data integrity through constraints:
โ€ข PRIMARY KEY, FOREIGN KEY, UNIQUE
โ€ข NOT NULL and CHECK Constraints
Now you should keep getting better with SQL programming language ๐Ÿ’ฅ

6. ๐—จ๐—ป๐—ฑ๐—ฒ๐—ฟ๐˜€๐˜๐—ฎ๐—ป๐—ฑ๐—ถ๐—ป๐—ด ๐—”๐—ด๐—ด๐—ฟ๐—ฒ๐—ด๐—ฎ๐˜๐—ถ๐—ผ๐—ป
Aggregate functions are powerful tools for summarizing data:
โ€ข SUM, AVG, COUNT, MAX, MIN
5. ๐——๐—ฎ๐˜๐—ฎ ๐— ๐—ฎ๐—ป๐—ถ๐—ฝ๐˜‚๐—น๐—ฎ๐˜๐—ถ๐—ผ๐—ป
Get hands-on with inserting, updating, and deleting data:
โ€ข INSERT, UPDATE, DELETE Commands
Already proficient with basic commands?

Now itโ€™s turn to understand how to manage databases with the following two steps:

4. ๐——๐—ฎ๐˜๐—ฎ ๐——๐—ฒ๐—ณ๐—ถ๐—ป๐—ถ๐˜๐—ถ๐—ผ๐—ป
Learn how to structure and manage your databases with:
โ€ข CREATE, ALTER, DROP Statements
3. ๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ๐—ถ๐—ป๐—ด ๐—•๐—ฎ๐˜€๐—ถ๐—ฐ ๐—ž๐—ฒ๐˜†๐˜„๐—ผ๐—ฟ๐—ฑ๐˜€
The first real step is to familiarize yourself with the commands that form the backbone of SQL querying:

โ€ข SELECT, FROM, WHERE
โ€ข ORDER BY and LIMIT Clauses
2. ๐—˜๐˜…๐—ฝ๐—น๐—ผ๐—ฟ๐—ถ๐—ป๐—ด ๐——๐—ฎ๐˜๐—ฎ ๐—ง๐˜†๐—ฝ๐—ฒ๐˜€
Once you have a clear image of SQL, you should understand the core data types you will be working with ๐Ÿ‘‡๐Ÿป

โ€ข Integers, Decimals, and Booleans
โ€ข Character Types: CHAR and VARCHAR
โ€ข Dates and Binary Data
1. ๐—Ÿ๐—ฒ๐—ฎ๐—ฟ๐—ป๐—ถ๐—ป๐—ด ๐˜๐—ต๐—ฒ ๐—•๐—ฎ๐˜€๐—ถ๐—ฐ๐˜€
Before diving deep, it's essential to grasp what is SQL.

Begin with:
โ€ข What is a Relational Database?
โ€ข Comparing SQL and NoSQL Databases
โ€ข Understanding SQL Syntax and Basic Commands
๐Ÿš€ New to SQL?

Then hereโ€™s a roadmap to get you started in 2025, step-by-step! ๐Ÿงต๐Ÿ‘‡

(Don't forget to bookmark for later!! ๐Ÿ˜‰ )
Did you like this post?

Then join the DataBites newsletter to get weekly issues about Data Science and more! ๐Ÿงฉ

๐Ÿ‘‰๐Ÿป databites.tech
This roadmap covers everything you need to go from a beginner to an advanced Python programmer! ๐ŸŒฑ
17. ๐——๐—ฒ๐˜ƒ๐—ข๐—ฝ๐˜€ ๐—ฎ๐—ป๐—ฑ ๐——๐—ฒ๐—ฝ๐—น๐—ผ๐˜†๐—บ๐—ฒ๐—ป๐˜
Integrate Python into DevOps practices to deploy and scale your applications. Understanding CI/CD, Docker, and cloud deployment will make your skills industry-ready.
16. ๐—ง๐—ฒ๐˜€๐˜๐—ถ๐—ป๐—ด
Testing is essential for reliable software! Learn the basics of Doctest, Nose, Pytest, and Unittest. These tools help ensure that your code works as expected.