{"id":23546989,"url":"https://github.com/edomini/cs4416_databasesystems","last_synced_at":"2025-06-10T20:36:12.979Z","repository":{"id":268162501,"uuid":"903508339","full_name":"edomini/CS4416_DatabaseSystems","owner":"edomini","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-14T19:34:10.000Z","size":322,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-15T12:41:54.592Z","etag":null,"topics":["database","sql"],"latest_commit_sha":null,"homepage":"","language":null,"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/edomini.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-14T19:25:10.000Z","updated_at":"2024-12-14T19:35:30.000Z","dependencies_parsed_at":"2024-12-14T20:25:35.611Z","dependency_job_id":"7d90fa31-ea62-4566-aae1-437c7cb22c9a","html_url":"https://github.com/edomini/CS4416_DatabaseSystems","commit_stats":null,"previous_names":["edomini/cs4416_databasesystems"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edomini%2FCS4416_DatabaseSystems","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edomini%2FCS4416_DatabaseSystems/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edomini%2FCS4416_DatabaseSystems/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edomini%2FCS4416_DatabaseSystems/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edomini","download_url":"https://codeload.github.com/edomini/CS4416_DatabaseSystems/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edomini%2FCS4416_DatabaseSystems/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259147069,"owners_count":22812354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["database","sql"],"created_at":"2024-12-26T09:13:37.653Z","updated_at":"2025-06-10T20:36:12.943Z","avatar_url":"https://github.com/edomini.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# CS4416 Database Systems\nConsider the relational database schema in concerts_schema.sql.\n\nThis is the schema of a relational database that contains data about artists (incl. bands), their songs,\nalbums and concerts. It also contains data about fans and tickets they have purchased for concerts.\n\nAssume that a song_id identifies a particular recording/version of a song. Note that the same artists\nmay record the same song multiple times, and each recording would have a different song_id. Note\nalso that the same song_id may appear on multiple albums.\n## Task 1\nPropose a modified schema to eliminate data redundancy and support:\n- multiple artists per album, song, and concert\n- multiple favourite artists per fan\n- shared tickets, i.e. multiple fans per ticket_id\n\nIn a separate file named data.sql, provide INSERT INTO statements for inserting some data into\nthe tables of the modified schema. Please provide data for at least two artists, at least two\nalbums, at least 2 concerts ad at least 2 fans who have purchased tickets for concerts.\n## Task 2\nDraw an entity-relationship diagram (ERD) for the modified schema using crow’s foot notation.\n## Task 3\nCreate a view for the modified schema. The view must use a join and both GROUP BY and\nHAVING clauses. Aim at demonstrating advanced SQL skills.\n## Task 4\nWrite one BEFORE and one AFTER trigger for the modified schema.\n## Task 5\nWrite a stored function that returns the total number of occupied seats for a given concert_id.\n## Task 6\nWrite a stored procedure that checks whether a given song_id is associated with a given\nalbum_id. If not, insert this association into the database. Additionally, adjust the song’s release\ndate if it is later than the album’s.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedomini%2Fcs4416_databasesystems","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedomini%2Fcs4416_databasesystems","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedomini%2Fcs4416_databasesystems/lists"}