{"id":35063073,"url":"https://github.com/kenresoft/relational_database","last_synced_at":"2026-04-01T21:05:21.389Z","repository":{"id":155515220,"uuid":"629210639","full_name":"kenresoft/relational_database","owner":"kenresoft","description":"Relational Database Management Demonstration with SQL and Entity Relationship Diagrams.","archived":false,"fork":false,"pushed_at":"2023-04-27T05:48:38.000Z","size":636,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-28T00:36:37.927Z","etag":null,"topics":["database","erdiagram","mysql","queries","reporting","sql"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kenresoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-04-17T21:20:16.000Z","updated_at":"2025-01-07T05:12:25.000Z","dependencies_parsed_at":"2023-05-02T08:56:54.970Z","dependency_job_id":null,"html_url":"https://github.com/kenresoft/relational_database","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kenresoft/relational_database","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenresoft%2Frelational_database","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenresoft%2Frelational_database/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenresoft%2Frelational_database/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenresoft%2Frelational_database/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kenresoft","download_url":"https://codeload.github.com/kenresoft/relational_database/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenresoft%2Frelational_database/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31291987,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["database","erdiagram","mysql","queries","reporting","sql"],"created_at":"2025-12-27T10:57:54.750Z","updated_at":"2026-04-01T21:05:21.382Z","avatar_url":"https://github.com/kenresoft.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# relational_database\n\n## Relational Database demonstration with SQL\n\nA Relational Database is a form of database that stores and organizes data elements with established relationships in order to provide quick access.\n\n### Entity\nIn a database, an entity is essentially a container for storing and separating information relevant to the project's objectives.\n\n### Property/Attribute\nThe characterizing features or properties that identify all objects belonging to a specific category and are applied to all cells in a column are known as attributes.\n\n### Domain Integrity\nDomain integrity is established by the permissible values of an attribute, which ensures that all data in a field is valid.\n\n### Relationship Hints\n\n1:1 = One to One Cardinality\n\n1:M = One to Many Cardinality\n\nM:N = Many to Many Cardinality\n\nTP = Total Participation\n\nPP = Partial Participation\n\n### LIST OF TABLES\n- candidates\n- categories\n- electorates\n- locations\n- parties\n- polling_units\n- positions\n- registrations\n- votes\n\n### Database setup\n\n```sql\n\nDROP TABLE IF EXISTS `Candidates`;\nDROP TABLE IF EXISTS `Electorates`;\nDROP TABLE IF EXISTS `Categories`;\nDROP TABLE IF EXISTS `Locations`;\nDROP TABLE IF EXISTS `PollingUnits`;\nDROP TABLE IF EXISTS `Parties`;\nDROP TABLE IF EXISTS `Registrations`;\nDROP TABLE IF EXISTS `Positions`;\nDROP TABLE IF EXISTS `Votes`;\n\nCREATE TABLE `candidates` (\n  `candidate_id` int(11) NOT NULL,\n  `candidate_name` varchar(255) NOT NULL,\n  `gender` varchar(255) NOT NULL,\n  `age` int(11) NOT NULL,\n  `position_id` int(11) NOT NULL,\n  `party_id` int(11) NOT NULL,\n  `category_id` int(11) NOT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;\n```\n\n### Tools\n- JetBrains Datagrip\n- Apache MySQL Server\n- PHPMyAdmin\n- Database Designer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenresoft%2Frelational_database","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkenresoft%2Frelational_database","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenresoft%2Frelational_database/lists"}