Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Latest commit 4156379 Jun 11, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
binder Revised material Mar 14, 2019
diagrams Delete B1-ERD_Water_Utility.mwb May 26, 2019
notes Add more practice. Apr 18, 2019
.gitignore Initial commit Dec 4, 2018
.travis.yml Initial commit Dec 4, 2018
A1-ER_modeling.pptx Add files via upload May 26, 2019
A2-ER_modeling-WaterUtility.pptx Add files via upload May 26, 2019
A3-ER_modeling-DB_vs_Spredsheets_Normalization.pptx Add files via upload May 26, 2019
A4-ER_modeling-CreateTablesInSQL.pptx Add files via upload May 26, 2019
C-SQL.pptx Add files via upload Jun 11, 2019
C-Schemas.pdf Initial commit Dec 4, 2018
C-Schemas.pptx Initial commit Dec 4, 2018
ERDforPanos1.docx Add files via upload Apr 19, 2019
ERDforPanos2.pdf Add files via upload Apr 19, 2019
README.md
TODO.md Update TODO.md Jun 11, 2019

README.md

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
You can’t perform that action at this time.