{"id":17718322,"url":"https://github.com/itdxer/chaining-ranges-in-sql","last_synced_at":"2025-03-31T12:26:34.493Z","repository":{"id":72524355,"uuid":"275166466","full_name":"itdxer/chaining-ranges-in-sql","owner":"itdxer","description":"Code with examples provided for the article","archived":false,"fork":false,"pushed_at":"2020-06-26T15:35:31.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-08-03T03:55:14.019Z","etag":null,"topics":["mysql","ranges","sql"],"latest_commit_sha":null,"homepage":"http://blog.itdxer.com/2020/06/22/chaining-ranges-with-sql.html","language":"TSQL","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/itdxer.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":"2020-06-26T13:47:11.000Z","updated_at":"2023-08-03T03:55:14.019Z","dependencies_parsed_at":null,"dependency_job_id":"0d27ef0e-b31b-4502-9c49-009840595979","html_url":"https://github.com/itdxer/chaining-ranges-in-sql","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itdxer%2Fchaining-ranges-in-sql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itdxer%2Fchaining-ranges-in-sql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itdxer%2Fchaining-ranges-in-sql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itdxer%2Fchaining-ranges-in-sql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itdxer","download_url":"https://codeload.github.com/itdxer/chaining-ranges-in-sql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246467394,"owners_count":20782298,"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":["mysql","ranges","sql"],"created_at":"2024-10-25T14:43:52.838Z","updated_at":"2025-03-31T12:26:34.474Z","avatar_url":"https://github.com/itdxer.png","language":"TSQL","readme":"# Chaining ranges in SQL\n\nThe main purpose for this code is to provide an example of the solution for the following problem\n\n\u003e Let's say we have an office that can be accessed only using an ID card. Each time an employee enters and leaves the office we record this event as a row in the database. In the database, we store user ID, time when an employee entered and left the office. We want to write a query that extracts all time ranges when there was at least one person in the office.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitdxer%2Fchaining-ranges-in-sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitdxer%2Fchaining-ranges-in-sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitdxer%2Fchaining-ranges-in-sql/lists"}