Skip to content

themlprofessional/SQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SQL

Collection of SQL queries

image

Topics

  1. CASE WHEN.
  2. Self joins.
  3. DISTINCT and GROUP BY
  4. Left vs outer joins.
  5. UNION vs UNION ALL
  6. SUM and COUNT
  7. Date-time functions
  8. Casting and substring
  9. Window functions like rank and row
  10. Subqueries
  11. HAVING vs WHERE
  12. LAG and LEAD
  13. Understanding indexing
  14. Running totals
  15. MAX and MIN
  16. Using SUM CASE WHEN to count
  17. COUNT DISTINCT
  18. How to debug a query.
  19. How to speed up a query.
  20. Rank and dense rank

Prepare these topics well!!

📌 Basic SQL Commands - DDL, DML, DCL, DQL and TCL (SELECT, DELETE, UPDATE, TRUNCATE, DROP, CREATE, INSERT, REVOKE, GRANT, COMMIT, ROLLBACK, SAVEPOINT) 📌 Aggregation Functions - SUM, MIN, MAX, AVG, PRODUCT, DIFFERENCE. 📌 GROUP BY, PARTITION BY, WITH. 📌 Common Table Expressions (CTE) 📌 Joins (Don't ignore 📌 Window Functions (RANK, DENSE_RANK, ROW_NUMBER, LEAD, LAG) 📌 Date Time Functions 📌 String Functions 📌 CASE WHEN, SWITCH 📌 Null Functions 📌 Logical Functions 📌 WHERE, HAVING, ORDER BY, LIMIT, OFFSET, FETCH. 📌 UNION and UNION ALL. 📌 Theoritical knowledge on Views, Stored Procedures, Functions (Good to have)

About

Collection of SQL queries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages