{"id":13838375,"url":"https://github.com/kiwidamien/SQL_practice","last_synced_at":"2025-07-10T21:32:40.108Z","repository":{"id":45557326,"uuid":"154115936","full_name":"kiwidamien/SQL_practice","owner":"kiwidamien","description":"A collection of SQL practice problems for interviews","archived":false,"fork":false,"pushed_at":"2021-02-18T02:19:30.000Z","size":1363,"stargazers_count":123,"open_issues_count":1,"forks_count":59,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-05T15:07:35.774Z","etag":null,"topics":["interview-practice","sql"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/kiwidamien.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}},"created_at":"2018-10-22T09:12:59.000Z","updated_at":"2024-08-05T14:31:56.000Z","dependencies_parsed_at":"2022-09-05T09:51:51.944Z","dependency_job_id":null,"html_url":"https://github.com/kiwidamien/SQL_practice","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiwidamien%2FSQL_practice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiwidamien%2FSQL_practice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiwidamien%2FSQL_practice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiwidamien%2FSQL_practice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kiwidamien","download_url":"https://codeload.github.com/kiwidamien/SQL_practice/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225657409,"owners_count":17503552,"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":["interview-practice","sql"],"created_at":"2024-08-04T15:01:53.675Z","updated_at":"2024-11-21T01:30:57.238Z","avatar_url":"https://github.com/kiwidamien.png","language":"Python","readme":"# Practice sets for SQL\n\nThis is a set of practice questions for SQL. The idea is to give you a set of problems that ask you to use \nSQL to find certain results. In most cases, the result from the data set will be given. The queries themselves\nwill not be given (as there are generally multiple ways to answer any given query).\n\nFor each problem set, I have included the following:\n\n* Simple CSVs containing the data \n* A simple script, `install.sql` that can create a database and load the data into a postgres server (this has to be running on your local machine)\n* README.md, which includes the queries and result set you should get for that data set.\n\nThere may be additional files (such as a schema) but this is not guaranteed.\n\n## Installation\n\n### Mac OSX\n\nIf you have already install postgres on your system, you only need to run step 3.\n \n1. Install [brew](https://brew.sh/) if you haven't installed it already using the following command:\n```bash\n/usr/bin/ruby -e \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)\"\n```\n\n2. Install postgres using `brew`:\n```bash\n# install postgres\nbrew install postgresql\n\n# install the start/stop/restart services\nbrew tap homebrew/services\n\n# create your user, so you can open postgres\ncreatedb \n\n# start postgre running\nbrew services start postgresql\n```\n\n3. Clone this repo and install\n```bash\ngit clone https://github.com/kiwidamien/SQL_Practice.git\ncd SQL_Practice\nsh install_problems.sh\n```\n\nPutting all the commands into one script:\n```bash\n# install homebrew\n/usr/bin/ruby -e \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)\"\n\n# install postgres\nbrew install postgresql\ncreatedb \nbrew services start postgresql\n\n# get this repo and install it\ngit clone https://github.com/kiwidamien/SQL_Practice.git\ncd SQL_Practice\nsh install_problems.sh\n```\n\n## Issues?\n\nPlease report all issues using Github issues\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiwidamien%2FSQL_practice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkiwidamien%2FSQL_practice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiwidamien%2FSQL_practice/lists"}