khof312 / introduction-to-databases

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Relational Databases and SQL

This is a brief introductory module to relational databases and SQL. It mainly targets people that are interested in learning SQL, and does not cover topics such as indexing, transactions, stored procedures, etc.

Additional Resources for Learning SQL

Useful Pointers

Indicative Syllabus

Entity-Relationship Model

  • Entities, Primary Keys, and Attributes
  • Relations
  • Cardinality: One-to-One, One-to-Many, Many-to-Many
In class: Artist-Gallery-Painting example

From ER Diagram to SQL Tables

  • Translating ER Diagrams to Tables
  • SQL Statements for Creating Tables

Querying a Database Using SQL

  • USE, DESCRIBE queries
  • Selection queries: *, column, column AS, DISTINCT, ORDER BY, LIMIT
  • Where clauses: Boolean conditions, IN, BETWEEN, LIKE
  • Aggregation queries: GROUP BY, SUM, AVG, MAX, MIN, ROLLUP
  • Join queries: INNER JOIN, OUTER JOIN
  • Subqueries and Views
In-class Exercise: Compare Tastes Across Demographic Segments

About


Languages

Language:Jupyter Notebook 99.6%Language:Python 0.2%Language:Shell 0.1%