Skip to content

TebasMartinez/CS50SQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CS50 SQL

Index

Week 0 - Querying

  • SELECT
  • LIMIT
  • WHERE
    • =, >, <, >=, <=, != <>, NOT
    • AND
    • OR
    • ()
    • IS NULL, IS NOT NULL
    • LIKE, %, _
    • BETWEEN ... AND ...
  • ORDER BY ... ASC / DESC
  • Aggregate functions:
    • COUNT
    • AVG
    • MIN
    • MAX
    • SUM
  • DISTINCT

Week 1 - Relating

  • Relationships:
    • One to one.
    • One to many.
    • Many to many.
  • Subqueries.
  • Joins.
    • INNER, LEFT, RIGHT, FULL
    • NATURAL JOIN
  • Sets.
    • UNION
    • INTERESCT
    • EXCEPT
  • Groups.
    • GROUP BY
    • HAVING

Week 2 - Designing

  • Commands:
    • .schema
    • .quit
    • .read file.sql
  • Statements:
    • CREATE TABLE
    • DROP TABLE
  • Data Types vs. Storage Classes
  • Type Affinities
  • Table Constraints
    • PRIMARY KEY
    • FOREIGN KEY
  • Column Constraints
    • CHECK
    • DEFAULT
    • NOT FULL
    • UNIQUE
  • Altering tables
    • DROP TABLE
  • ALTER TABLE
    • RENAME TO
    • ADD COLUMN
    • RENAME COLUMN

About

This repository includes links, resources, my notes, and my solved problem sets for Harvard University's CS50 SQL: Introduction to Databases with SQL

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors