Echo retweeted
Most JS devs write async code every day.
Most JS devs don't actually understand it.
Here are 7 async mistakes that are silently breaking your apps: 🧵
Replying to @echo__1152 @SahilExec
Yeah sure man.
If you know the absolute basics of SQL queries like - basic selection, create, update, alter, delete, truncate
BASICS ---
you should focus on mastering joins, most importantly - inner, left and have some idea about cross joins (and why they are bad)
once you are okay with joins, learn about Grouping using GROUP BY and HAVING keyword, not just learn it should be fine grained in your head. Learn how HAVING is different from WHERE
Learn Ordering and Limiting Data, using ORDER BY, LIMIT and OFFSET. Learn about paginations and specially cursor based pagination.
Learn about basic Aggregate functions - SUM, COUNT, MAX, MIN, AVG
then learn a bit about subqueries, (thats what i have used above) and how they behave under different context and circumstances. get comfortable
Along with SubQueries, you'll learn these keywords like 'IN', 'EXISTS' and more
Learn NULL and Blank handling in SQL while filtering
Learn basics about UNION and UNION ALL
MODERN SQL ---
jump to CTEs, and understand the difference between using CTEs and subqueries
Then, learn about CASE WHEN statements
then IFNULL and COALESCE (very underrated)
Then comes SQL final boss, Window functions. Spend good time with it and learn more aggregate functions here like LEAD, LAG, FIRST, LAST and more
Grind SQL problems on leetcode, not endlessly, 10-20 easy-medium problems will cover most cases
DATABASES ---
Learn about indexes and basics about their internals (B & B+ trees, LSM Trees)
ACID properties
learn about transactions in-depth, race-conditions and deadlocks
study about isolation levels
then, learn normalisation and de-normalisatiom and which is used when
I might have missed a few things, but this is more or less enough to be good with databases and SQL
Also, i have a YT channel where i have covered this with explaining concepts, it doesn't cover everything but enough to get you going:
youtu.be/Hm1pA34r65A?si=tjvf…



