Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

🗄️ SQL for Data Science

Personal notes and reference guide covering SQL fundamentals, advanced queries, and database access with Python.


📚 Contents

Part I — SQL for Data Manipulation

  • Introduction to databases, RDBMS, and SQL
  • SELECT statement: filtering, pattern matching, ranges, sorting
  • COUNT, DISTINCT, LIMIT, OFFSET
  • Grouping and aggregating with GROUP BY, HAVING, AS
  • INSERT, UPDATE, DELETE statements

Part II — Functions, Multiple Tables & Subqueries

  • Aggregate functions: SUM, MIN, MAX, AVG, COUNT
  • Scalar and string functions
  • Date and time functions
  • Subqueries (nested SELECT in WHERE, SELECT, FROM)
  • Accessing multiple tables: subqueries, implicit joins, explicit JOIN operations

Part III — SQL Statement Types & DDL

  • Relational model, Entity-Relationship (ER) model
  • Primary keys, foreign keys, and constraints
  • DDL vs DML categories
  • CREATE TABLE, ALTER TABLE, DROP TABLE, TRUNCATE

Part IV — Accessing Databases with Python

  • Python DB-API overview and workflow
  • Connection objects and cursor objects
  • SQL Magic in Jupyter Notebooks (%sql, %%sql)
  • Exploratory Data Analysis with pandas and seaborn
  • Practical case study: McDonald's nutritional dataset (SQLite + Python)

👤 Author

Matthieu Vanhoecke

About

No description or website provided.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages