{"id":32563027,"url":"https://github.com/blevs/webdb-iii-recitation","last_synced_at":"2026-07-03T22:02:14.582Z","repository":{"id":44073180,"uuid":"208105519","full_name":"Blevs/webdb-iii-recitation","owner":"Blevs","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-11T01:44:58.000Z","size":713,"stargazers_count":1,"open_issues_count":17,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-29T02:56:25.534Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Blevs.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-12T17:21:01.000Z","updated_at":"2020-03-26T20:53:40.000Z","dependencies_parsed_at":"2023-02-08T21:46:36.129Z","dependency_job_id":null,"html_url":"https://github.com/Blevs/webdb-iii-recitation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Blevs/webdb-iii-recitation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blevs%2Fwebdb-iii-recitation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blevs%2Fwebdb-iii-recitation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blevs%2Fwebdb-iii-recitation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blevs%2Fwebdb-iii-recitation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Blevs","download_url":"https://codeload.github.com/Blevs/webdb-iii-recitation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blevs%2Fwebdb-iii-recitation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35102742,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-03T02:00:05.635Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-29T02:56:09.487Z","updated_at":"2026-07-03T22:02:14.569Z","avatar_url":"https://github.com/Blevs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"* WebDB Recitation III\n\n  Today we will be working with multi-table queries on an existing database schema.\n\n** Queries\n   You can connect to a local sqlite database on the command line by running the\n   command ~sqlite3 dbName.sqlite3~. Navigate into the ~/data~ directory and open\n   the ~dev.sqlite3~ database this way. You can now run SQL queries against it.\n   (Don't forget to end your commands with a ~;~).\n   \n   You can exit by pressing ~CTRL-d~. View the tables and their schema with the\n   commands ~.tables~ and ~.schema --indent table_name~. For a more legible list of\n   a tables columns use ~PRAGMA table_info('table_name')~. To have column names\n   appear in query output run ~.headers ON~ and ~.mode column~.\n   \n   See https://sqlite.org/cli.html for more configuration options.\n   \n   We will be using the ~books.db3~ in the root of the repository.\n\n*** Select all books with their publishers\n    #+begin_src sql\n      SELECT title, publisher FROM books\n      JOIN publishers ON publishers.id = books.publisher_id;\n    #+end_src\n    \n*** Display all reviews with the user name, rating and book title where the rating is above 4\n    #+begin_src sql\n      SELECT reviews.rating, users.username, books.title FROM reviews\n      JOIN users ON users.id = reviews.user_id\n      JOIN books ON books.id = reviews.book_id\n      WHERE reviews.rating \u003e 4;\n    #+end_src\n\n*** Display all books written by author 6 with the book titles and author names\n    #+begin_src sql\n      SELECT books.title, authors.name FROM books_authors\n      JOIN books ON books.id = books_authors.author_id\n      JOIN authors ON authors.id = books_authors.book_id;\n    #+end_src\n\n** API\n   Write helpers and crud routes for owners and pets, with the ability to get\n   all pets belonging to a specific owner.\n\n** Schema\n\n*** ~owners~\n    | name  | type         | notnull | pk  |\n    | id    | integer      | yes     | yes |\n    | name  | varchar(255) | yes     |     |\n    | email | varchar(255) | yes     |     |\n\n*** ~species~\n    | name   | type         | notnull | pk  |\n    | id     | integer      | yes     | yes |\n    | specie | varchar(255) | yes     |     |\n\n*** ~pets~\n    | name              | type         | not null | pk  | fk         |\n    | id                | integer      | yes      | yes |            |\n    | name              | varchar(255) | yes      |     |            |\n    | age               | integer      | yes      |     |            |\n    | owner_id          | integer      | yes      |     | owners.id  |\n    | care_instructions | text         |          |     |            |\n    | species_id        | integer      | yes      |     | species.id |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblevs%2Fwebdb-iii-recitation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblevs%2Fwebdb-iii-recitation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblevs%2Fwebdb-iii-recitation/lists"}