Skip to content
/ EfDS_DB Public

Essentials for Data Science: 3*4h course on relational databases

Notifications You must be signed in to change notification settings

LUMC/EfDS_DB

Repository files navigation

Essentials for Data Science

Materials for Essentials for Data Sciences course: relational databases, SQL and relational objects.

Prerequisites

  • This course is Python-based and uses Python packages:
    • SQLAlchemy for the database access and the SQL language.
    • pandas for data access and presentation.
  • The materials are developed and tested in:

Goals

  • Understand general database concepts.
  • Understand relational databases design (data model, types and representaions of relationships, normal forms).
  • Practice SQL language (SELECT queries of growing complexity, table JOIN operations, data content and table structure modification commands).
  • Work with Object Relational Mapper (use data from a relational database in an object-oriented code).

Day 1/4

Primary concepts

Relational databases concepts

Practicing SQL

  • Downloading and connecting to the example database: Lecture
  • Querying and selecting data (SELECT, LIMIT, AS, ORDER, DISTINCT, WHERE, IN, BETWEEN, LIKE): Lecture, Exercises

Day 2/4

Practicing SQL

  • Grouping and summarising (GROUP BY, HAVING, COUNT, SUM, AVG, MIN, MAX, GROUP_CONCAT): Lecture, Exercises
  • Modification statements (UPDATE, INSERT, DELETE): Lecture, Exercises
  • Data definition language (CREATE TABLE, DROP TABLE): Lecture
  • Joining tables 1 (INNER JOIN, LEFT JOIN, CREATE TEMP TABLE): Lecture, Exercises
  • Joining tables 2 (UNION, EXCEPT, INTERSECT, self joins, CROSS JOIN, subqueries, EXIST): Lecture, Exercises

Day 3/4

Learning Object Relational Mapper

  • Building object-oriented interface to a database: Practical
    (This is one long session but it cannot be easily split into smaller parts without major code repetitions.)

Day 4/4

Additional resources

About

Essentials for Data Science: 3*4h course on relational databases

Resources

Stars

Watchers

Forks

Packages

No packages published