https://github.com/leonsilva15/cs50-sql
Coursework from Harvard's CS50 SQL
https://github.com/leonsilva15/cs50-sql
database sql sqlite sqlite3
Last synced: about 1 month ago
JSON representation
Coursework from Harvard's CS50 SQL
- Host: GitHub
- URL: https://github.com/leonsilva15/cs50-sql
- Owner: LeonSilva15
- Created: 2023-10-23T04:28:48.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-20T16:44:13.000Z (over 2 years ago)
- Last Synced: 2025-07-17T11:52:09.269Z (11 months ago)
- Topics: database, sql, sqlite, sqlite3
- Homepage:
- Size: 53.9 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Harvard CS50 SQL
This repo contains my coursework from Harvard's CS50 SQL.
The course can be followed in the [official site](https://cs50.harvard.edu/sql/2024/).
## Installation
To follow this course, we use `SQLite`, which can be installed in MacOS using `brew`.
```
brew install sqlite
```
Start using `sqlite` with the next command. This will open the database using `sqlite3`
```
sqlite3 longlist.db
```
Get the full list of sqlite3 commands
```
.help
```
Exit the cli using
```
.quit
```
List the existing tables
```
.tables
```
Get the database DDL
```
.schema
```
Get a table DDL
```
.schema books
```
Execute a sql file
```
.read
.read schema.sql
```
Import data from file
```
.import -- --
.import --csv --skip 1 mfa.csv collections
```