{"id":22111219,"url":"https://github.com/binhnhu1409/-practice--postgresql","last_synced_at":"2025-07-11T15:40:20.750Z","repository":{"id":147129412,"uuid":"602725594","full_name":"binhnhu1409/-PRACTICE--Postgresql","owner":"binhnhu1409","description":"To practice and play with schema, collections and tables as well as get used to with SQL queries.","archived":false,"fork":false,"pushed_at":"2023-02-17T21:19:06.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T04:33:10.527Z","etag":null,"topics":["postgresql","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/binhnhu1409.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}},"created_at":"2023-02-16T20:14:53.000Z","updated_at":"2023-02-16T20:15:14.000Z","dependencies_parsed_at":"2023-05-14T13:30:47.719Z","dependency_job_id":null,"html_url":"https://github.com/binhnhu1409/-PRACTICE--Postgresql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/binhnhu1409/-PRACTICE--Postgresql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binhnhu1409%2F-PRACTICE--Postgresql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binhnhu1409%2F-PRACTICE--Postgresql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binhnhu1409%2F-PRACTICE--Postgresql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binhnhu1409%2F-PRACTICE--Postgresql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binhnhu1409","download_url":"https://codeload.github.com/binhnhu1409/-PRACTICE--Postgresql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binhnhu1409%2F-PRACTICE--Postgresql/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264842143,"owners_count":23671942,"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":["postgresql","sql"],"created_at":"2024-12-01T10:36:36.487Z","updated_at":"2025-07-11T15:40:20.425Z","avatar_url":"https://github.com/binhnhu1409.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# -PRACTICE--Postgresql\nTo practice and play with schema, collections and tables as well as get used to with SQL queries.\n\n## Requirements:\n1. Build the schema again by modifying the table photos and table comments, to allow the deletion of users in table ‘users’, and deletion of photos in table ‘photos’’. If a user is deleted, the photo connecting to that user should be deleted as well. If photo is deleted, the comments connecting to that photo should be deleted as well.\n2. Retrieve all the distinct photos in the database.\n3. Retrieve the usernames and photo’s url connecting to users.\n4. Retrieve all the usernames not having photos.\n5. Retrieve the photo which has the most comments.\n6. Retrieve the user who has the most comments\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinhnhu1409%2F-practice--postgresql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinhnhu1409%2F-practice--postgresql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinhnhu1409%2F-practice--postgresql/lists"}