{"action":"closed","number":2,"pull_request":{"url":"https://api.github.com/repos/fxjollois/cours-sql/pulls/2","id":151913556,"html_url":"https://github.com/fxjollois/cours-sql/pull/2","diff_url":"https://github.com/fxjollois/cours-sql/pull/2.diff","patch_url":"https://github.com/fxjollois/cours-sql/pull/2.patch","issue_url":"https://api.github.com/repos/fxjollois/cours-sql/issues/2","number":2,"state":"closed","locked":false,"title":"Modif question 4 Leçon 3-4","user":{"login":"ElisabethLeSaux","id":29946198,"avatar_url":"https://avatars2.githubusercontent.com/u/29946198?v=4","gravatar_id":"","url":"https://api.github.com/users/ElisabethLeSaux","html_url":"https://github.com/ElisabethLeSaux","followers_url":"https://api.github.com/users/ElisabethLeSaux/followers","following_url":"https://api.github.com/users/ElisabethLeSaux/following{/other_user}","gists_url":"https://api.github.com/users/ElisabethLeSaux/gists{/gist_id}","starred_url":"https://api.github.com/users/ElisabethLeSaux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElisabethLeSaux/subscriptions","organizations_url":"https://api.github.com/users/ElisabethLeSaux/orgs","repos_url":"https://api.github.com/users/ElisabethLeSaux/repos","events_url":"https://api.github.com/users/ElisabethLeSaux/events{/privacy}","received_events_url":"https://api.github.com/users/ElisabethLeSaux/received_events","type":"User","site_admin":false},"body":"Je te propose une modification de la question 4. La requête correspondante serait la suivante (avec ou sans la moyenne dans le select)\r\nselect fonction, AVG(strftime(\"%Y\",\"now\")-substr(datenaissance,6,4)) \"Age moyen\"\r\nfrom employe\r\ngroup by fonction\r\nhaving \"Age moyen\" > 60;","created_at":"2017-11-10T13:57:46Z","updated_at":"2017-11-14T08:58:41Z","closed_at":"2017-11-14T08:58:41Z","merged_at":"2017-11-14T08:58:41Z","merge_commit_sha":"a172fd9210f823c638dac1d2db7ea1748303c507","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/fxjollois/cours-sql/pulls/2/commits","review_comments_url":"https://api.github.com/repos/fxjollois/cours-sql/pulls/2/comments","review_comment_url":"https://api.github.com/repos/fxjollois/cours-sql/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fxjollois/cours-sql/issues/2/comments","statuses_url":"https://api.github.com/repos/fxjollois/cours-sql/statuses/ff849f310057b100edb070db305b9917cb30449a","head":{"label":"ElisabethLeSaux:master","ref":"master","sha":"ff849f310057b100edb070db305b9917cb30449a","user":{"login":"ElisabethLeSaux","id":29946198,"avatar_url":"https://avatars2.githubusercontent.com/u/29946198?v=4","gravatar_id":"","url":"https://api.github.com/users/ElisabethLeSaux","html_url":"https://github.com/ElisabethLeSaux","followers_url":"https://api.github.com/users/ElisabethLeSaux/followers","following_url":"https://api.github.com/users/ElisabethLeSaux/following{/other_user}","gists_url":"https://api.github.com/users/ElisabethLeSaux/gists{/gist_id}","starred_url":"https://api.github.com/users/ElisabethLeSaux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElisabethLeSaux/subscriptions","organizations_url":"https://api.github.com/users/ElisabethLeSaux/orgs","repos_url":"https://api.github.com/users/ElisabethLeSaux/repos","events_url":"https://api.github.com/users/ElisabethLeSaux/events{/privacy}","received_events_url":"https://api.github.com/users/ElisabethLeSaux/received_events","type":"User","site_admin":false},"repo":{"id":110082341,"name":"cours-sql","full_name":"ElisabethLeSaux/cours-sql","owner":{"login":"ElisabethLeSaux","id":29946198,"avatar_url":"https://avatars2.githubusercontent.com/u/29946198?v=4","gravatar_id":"","url":"https://api.github.com/users/ElisabethLeSaux","html_url":"https://github.com/ElisabethLeSaux","followers_url":"https://api.github.com/users/ElisabethLeSaux/followers","following_url":"https://api.github.com/users/ElisabethLeSaux/following{/other_user}","gists_url":"https://api.github.com/users/ElisabethLeSaux/gists{/gist_id}","starred_url":"https://api.github.com/users/ElisabethLeSaux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElisabethLeSaux/subscriptions","organizations_url":"https://api.github.com/users/ElisabethLeSaux/orgs","repos_url":"https://api.github.com/users/ElisabethLeSaux/repos","events_url":"https://api.github.com/users/ElisabethLeSaux/events{/privacy}","received_events_url":"https://api.github.com/users/ElisabethLeSaux/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ElisabethLeSaux/cours-sql","description":"Cours interactif de SQL (requêtes SELECT)","fork":true,"url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql","forks_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/forks","keys_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/teams","hooks_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/hooks","issue_events_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/issues/events{/number}","events_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/events","assignees_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/assignees{/user}","branches_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/branches{/branch}","tags_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/tags","blobs_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/git/refs{/sha}","trees_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/statuses/{sha}","languages_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/languages","stargazers_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/stargazers","contributors_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/contributors","subscribers_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/subscribers","subscription_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/subscription","commits_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/commits{/sha}","git_commits_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/git/commits{/sha}","comments_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/comments{/number}","issue_comment_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/issues/comments{/number}","contents_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/contents/{+path}","compare_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/merges","archive_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/downloads","issues_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/issues{/number}","pulls_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/pulls{/number}","milestones_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/milestones{/number}","notifications_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/labels{/name}","releases_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/releases{/id}","deployments_url":"https://api.github.com/repos/ElisabethLeSaux/cours-sql/deployments","created_at":"2017-11-09T07:30:58Z","updated_at":"2017-11-09T07:31:00Z","pushed_at":"2017-11-10T13:56:19Z","git_url":"git://github.com/ElisabethLeSaux/cours-sql.git","ssh_url":"git@github.com:ElisabethLeSaux/cours-sql.git","clone_url":"https://github.com/ElisabethLeSaux/cours-sql.git","svn_url":"https://github.com/ElisabethLeSaux/cours-sql","homepage":null,"size":5273,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fxjollois:master","ref":"master","sha":"ddddd8e4d95b12620d0fda9c346aaafb56955169","user":{"login":"fxjollois","id":9532898,"avatar_url":"https://avatars0.githubusercontent.com/u/9532898?v=4","gravatar_id":"","url":"https://api.github.com/users/fxjollois","html_url":"https://github.com/fxjollois","followers_url":"https://api.github.com/users/fxjollois/followers","following_url":"https://api.github.com/users/fxjollois/following{/other_user}","gists_url":"https://api.github.com/users/fxjollois/gists{/gist_id}","starred_url":"https://api.github.com/users/fxjollois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxjollois/subscriptions","organizations_url":"https://api.github.com/users/fxjollois/orgs","repos_url":"https://api.github.com/users/fxjollois/repos","events_url":"https://api.github.com/users/fxjollois/events{/privacy}","received_events_url":"https://api.github.com/users/fxjollois/received_events","type":"User","site_admin":false},"repo":{"id":61638340,"name":"cours-sql","full_name":"fxjollois/cours-sql","owner":{"login":"fxjollois","id":9532898,"avatar_url":"https://avatars0.githubusercontent.com/u/9532898?v=4","gravatar_id":"","url":"https://api.github.com/users/fxjollois","html_url":"https://github.com/fxjollois","followers_url":"https://api.github.com/users/fxjollois/followers","following_url":"https://api.github.com/users/fxjollois/following{/other_user}","gists_url":"https://api.github.com/users/fxjollois/gists{/gist_id}","starred_url":"https://api.github.com/users/fxjollois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxjollois/subscriptions","organizations_url":"https://api.github.com/users/fxjollois/orgs","repos_url":"https://api.github.com/users/fxjollois/repos","events_url":"https://api.github.com/users/fxjollois/events{/privacy}","received_events_url":"https://api.github.com/users/fxjollois/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fxjollois/cours-sql","description":"Cours interactif de SQL (requêtes SELECT)","fork":false,"url":"https://api.github.com/repos/fxjollois/cours-sql","forks_url":"https://api.github.com/repos/fxjollois/cours-sql/forks","keys_url":"https://api.github.com/repos/fxjollois/cours-sql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fxjollois/cours-sql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fxjollois/cours-sql/teams","hooks_url":"https://api.github.com/repos/fxjollois/cours-sql/hooks","issue_events_url":"https://api.github.com/repos/fxjollois/cours-sql/issues/events{/number}","events_url":"https://api.github.com/repos/fxjollois/cours-sql/events","assignees_url":"https://api.github.com/repos/fxjollois/cours-sql/assignees{/user}","branches_url":"https://api.github.com/repos/fxjollois/cours-sql/branches{/branch}","tags_url":"https://api.github.com/repos/fxjollois/cours-sql/tags","blobs_url":"https://api.github.com/repos/fxjollois/cours-sql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fxjollois/cours-sql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fxjollois/cours-sql/git/refs{/sha}","trees_url":"https://api.github.com/repos/fxjollois/cours-sql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fxjollois/cours-sql/statuses/{sha}","languages_url":"https://api.github.com/repos/fxjollois/cours-sql/languages","stargazers_url":"https://api.github.com/repos/fxjollois/cours-sql/stargazers","contributors_url":"https://api.github.com/repos/fxjollois/cours-sql/contributors","subscribers_url":"https://api.github.com/repos/fxjollois/cours-sql/subscribers","subscription_url":"https://api.github.com/repos/fxjollois/cours-sql/subscription","commits_url":"https://api.github.com/repos/fxjollois/cours-sql/commits{/sha}","git_commits_url":"https://api.github.com/repos/fxjollois/cours-sql/git/commits{/sha}","comments_url":"https://api.github.com/repos/fxjollois/cours-sql/comments{/number}","issue_comment_url":"https://api.github.com/repos/fxjollois/cours-sql/issues/comments{/number}","contents_url":"https://api.github.com/repos/fxjollois/cours-sql/contents/{+path}","compare_url":"https://api.github.com/repos/fxjollois/cours-sql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fxjollois/cours-sql/merges","archive_url":"https://api.github.com/repos/fxjollois/cours-sql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fxjollois/cours-sql/downloads","issues_url":"https://api.github.com/repos/fxjollois/cours-sql/issues{/number}","pulls_url":"https://api.github.com/repos/fxjollois/cours-sql/pulls{/number}","milestones_url":"https://api.github.com/repos/fxjollois/cours-sql/milestones{/number}","notifications_url":"https://api.github.com/repos/fxjollois/cours-sql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fxjollois/cours-sql/labels{/name}","releases_url":"https://api.github.com/repos/fxjollois/cours-sql/releases{/id}","deployments_url":"https://api.github.com/repos/fxjollois/cours-sql/deployments","created_at":"2016-06-21T14:00:49Z","updated_at":"2017-04-28T15:29:15Z","pushed_at":"2017-11-14T08:58:41Z","git_url":"git://github.com/fxjollois/cours-sql.git","ssh_url":"git@github.com:fxjollois/cours-sql.git","clone_url":"https://github.com/fxjollois/cours-sql.git","svn_url":"https://github.com/fxjollois/cours-sql","homepage":null,"size":5271,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fxjollois/cours-sql/pulls/2"},"html":{"href":"https://github.com/fxjollois/cours-sql/pull/2"},"issue":{"href":"https://api.github.com/repos/fxjollois/cours-sql/issues/2"},"comments":{"href":"https://api.github.com/repos/fxjollois/cours-sql/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/fxjollois/cours-sql/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/fxjollois/cours-sql/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fxjollois/cours-sql/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/fxjollois/cours-sql/statuses/ff849f310057b100edb070db305b9917cb30449a"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"fxjollois","id":9532898,"avatar_url":"https://avatars0.githubusercontent.com/u/9532898?v=4","gravatar_id":"","url":"https://api.github.com/users/fxjollois","html_url":"https://github.com/fxjollois","followers_url":"https://api.github.com/users/fxjollois/followers","following_url":"https://api.github.com/users/fxjollois/following{/other_user}","gists_url":"https://api.github.com/users/fxjollois/gists{/gist_id}","starred_url":"https://api.github.com/users/fxjollois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxjollois/subscriptions","organizations_url":"https://api.github.com/users/fxjollois/orgs","repos_url":"https://api.github.com/users/fxjollois/repos","events_url":"https://api.github.com/users/fxjollois/events{/privacy}","received_events_url":"https://api.github.com/users/fxjollois/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":1,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"fxjollois"}}