{"action":"created","comment":{"url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/pulls/comments/40110571","id":40110571,"diff_hunk":"@@ -0,0 +1,56 @@\n+//// Exercise 10\n+\n+mysql> SELECT * FROM Entry WHERE birthday<'1982-02-11 23:59:59';\n+\n+......\n+| 3987 |            98 | Ingrid      | Parks       | 1966-06-16 01:29:18 | other | address | P.O. Box 374, 5003 Malesuada Avenue                      | Brive-la-Gaillarde               | LI                             | Sierra Leone                                 | 11711           |\n+| 3988 |            63 | Vance       | Burgess     | 1970-06-22 23:36:42 | other | address | Ap #434-8365 Montes, Road                                | Porirua                          | North Island                   | Viet Nam                                     | T5M 2J0         |\n+| 3989 |            22 | Tad         | Wiggins     | 1950-03-14 07:05:47 | other | address | P.O. Box 265, 1889 Rutrum Street                         | Huelva                           | AN                             | Iran                                         | SO60 0RJ        |\n+| 3991 |            26 | Hashim      | Ray         | 1959-07-31 17:41:48 | home  | address | Ap #345-6224 Volutpat. Rd.                               | Placanica                        | Calabria                       | Bahrain                                      | 3503            |\n+| 3992 |            20 | Destiny     | Schneider   | 1981-09-12 09:19:06 | home  | address | Ap #868-7136 Volutpat Avenue                             | Istanbul                         | Istanbul                       | Saint Barthélemy                             | 2902PZ          |\n+| 3993 |            57 | Elliott     | Dillon      | 1957-05-11 11:11:54 | home  | address | P.O. Box 897, 1747 Vel St.                               | Mendonk                          | OV                             | Ecuador                                      | 64-720          |\n+| 3995 |            39 | Matthew     | Rivera      | 1976-02-17 22:26:27 | home  | address | 9028 Id, Avenue                                          | Istanbul                         | Istanbul                       | Korea, South                                 | 29035           |\n+| 3997 |            34 | Paul        | Camacho     | 1947-01-04 18:32:07 | home  | address | Ap #415-479 Montes, Road                                 | Lakeshore                        | Ontario                        | Syria                                        | 47791           |\n+| 3998 |            77 | Mia         | Payne       | 1981-04-21 09:19:57 | home  | address | 2698 Morbi St.                                           | Bracknell                        | Berkshire                      | Montenegro                                   | 4598            |\n+| 3999 |             9 | Scarlett    | Santiago    | 1969-06-13 04:22:13 | home  | address | 320-5290 Aliquam Road                                    | Canino                           | LAZ                            | Nigeria                                      | C6R 9B5         |\n+| 4000 |            99 | Benedict    | Wilson      | 1960-08-18 07:08:16 | home  | address | 7949 Vel Road                                            | Qualicum Beach                   | British Columbia               | Portugal                                     | 22456           |\n++------+---------------+-------------+-------------+---------------------+-------+---------+----------------------------------------------------------+----------------------------------+--------------------------------+----------------------------------------------+-----------------+\n+2687 rows in set (0.00 sec)\n+\n+mysql> SELECT COUNT(*) FROM Entry WHERE birthday<'1982-02-11 23:59:59';\n+\n++----------+\n+| COUNT(*) |\n++----------+\n+|     2687 |\n++----------+\n+1 row in set (0.00 sec)\n+\n+mysql> \n+\n+// Answer: 2,687 entries are listed as born before February 12th of 1982.\n+\n+mysql> SELECT COUNT(*) FROM Entry WHERE birthday>='1965-01-01 00:00:00';                                                                               \n++----------+\n+| COUNT(*) |\n++----------+\n+|     2597 |\n++----------+\n+1 row in set (0.01 sec)\n+\n+mysql> \n+\n+// Answer: 2,597 entries are listed as born on or after January 1st of 1965.\n+\n+mysql> SELECT * FROM Entry ORDER BY birthday ASC LIMIT 1;","path":"exercise-10.txt","position":45,"original_position":45,"commit_id":"ec584521937312f7336bf521ada0ea364c9f11f7","original_commit_id":"ec584521937312f7336bf521ada0ea364c9f11f7","user":{"login":"nyanofthemoon","id":3919995,"avatar_url":"https://avatars.githubusercontent.com/u/3919995?v=3","gravatar_id":"","url":"https://api.github.com/users/nyanofthemoon","html_url":"https://github.com/nyanofthemoon","followers_url":"https://api.github.com/users/nyanofthemoon/followers","following_url":"https://api.github.com/users/nyanofthemoon/following{/other_user}","gists_url":"https://api.github.com/users/nyanofthemoon/gists{/gist_id}","starred_url":"https://api.github.com/users/nyanofthemoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyanofthemoon/subscriptions","organizations_url":"https://api.github.com/users/nyanofthemoon/orgs","repos_url":"https://api.github.com/users/nyanofthemoon/repos","events_url":"https://api.github.com/users/nyanofthemoon/events{/privacy}","received_events_url":"https://api.github.com/users/nyanofthemoon/received_events","type":"User","site_admin":false},"body":"Use of LIMIT is a good thing! However, it could be possible for several people to have this same birthdate. :+1: ","created_at":"2015-09-22T16:46:05Z","updated_at":"2015-09-22T16:46:05Z","html_url":"https://github.com/DecodeMTL/mysql-workshop-2/pull/61#discussion_r40110571","pull_request_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/pulls/61","_links":{"self":{"href":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/pulls/comments/40110571"},"html":{"href":"https://github.com/DecodeMTL/mysql-workshop-2/pull/61#discussion_r40110571"},"pull_request":{"href":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/pulls/61"}}},"pull_request":{"url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/pulls/61","id":45686321,"html_url":"https://github.com/DecodeMTL/mysql-workshop-2/pull/61","diff_url":"https://github.com/DecodeMTL/mysql-workshop-2/pull/61.diff","patch_url":"https://github.com/DecodeMTL/mysql-workshop-2/pull/61.patch","issue_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/issues/61","number":61,"state":"open","locked":false,"title":"exercise-10","user":{"login":"vntrp","id":12161094,"avatar_url":"https://avatars.githubusercontent.com/u/12161094?v=3","gravatar_id":"","url":"https://api.github.com/users/vntrp","html_url":"https://github.com/vntrp","followers_url":"https://api.github.com/users/vntrp/followers","following_url":"https://api.github.com/users/vntrp/following{/other_user}","gists_url":"https://api.github.com/users/vntrp/gists{/gist_id}","starred_url":"https://api.github.com/users/vntrp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vntrp/subscriptions","organizations_url":"https://api.github.com/users/vntrp/orgs","repos_url":"https://api.github.com/users/vntrp/repos","events_url":"https://api.github.com/users/vntrp/events{/privacy}","received_events_url":"https://api.github.com/users/vntrp/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-22T16:33:27Z","updated_at":"2015-09-22T16:46:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bea99cce0e401763cd9c2839c22cf7cfdd88ac29","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/pulls/61/commits","review_comments_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/pulls/61/comments","review_comment_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/issues/61/comments","statuses_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/statuses/ec584521937312f7336bf521ada0ea364c9f11f7","head":{"label":"vntrp:exercise-10","ref":"exercise-10","sha":"ec584521937312f7336bf521ada0ea364c9f11f7","user":{"login":"vntrp","id":12161094,"avatar_url":"https://avatars.githubusercontent.com/u/12161094?v=3","gravatar_id":"","url":"https://api.github.com/users/vntrp","html_url":"https://github.com/vntrp","followers_url":"https://api.github.com/users/vntrp/followers","following_url":"https://api.github.com/users/vntrp/following{/other_user}","gists_url":"https://api.github.com/users/vntrp/gists{/gist_id}","starred_url":"https://api.github.com/users/vntrp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vntrp/subscriptions","organizations_url":"https://api.github.com/users/vntrp/orgs","repos_url":"https://api.github.com/users/vntrp/repos","events_url":"https://api.github.com/users/vntrp/events{/privacy}","received_events_url":"https://api.github.com/users/vntrp/received_events","type":"User","site_admin":false},"repo":{"id":42938149,"name":"mysql-workshop-2","full_name":"vntrp/mysql-workshop-2","owner":{"login":"vntrp","id":12161094,"avatar_url":"https://avatars.githubusercontent.com/u/12161094?v=3","gravatar_id":"","url":"https://api.github.com/users/vntrp","html_url":"https://github.com/vntrp","followers_url":"https://api.github.com/users/vntrp/followers","following_url":"https://api.github.com/users/vntrp/following{/other_user}","gists_url":"https://api.github.com/users/vntrp/gists{/gist_id}","starred_url":"https://api.github.com/users/vntrp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vntrp/subscriptions","organizations_url":"https://api.github.com/users/vntrp/orgs","repos_url":"https://api.github.com/users/vntrp/repos","events_url":"https://api.github.com/users/vntrp/events{/privacy}","received_events_url":"https://api.github.com/users/vntrp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vntrp/mysql-workshop-2","description":"","fork":true,"url":"https://api.github.com/repos/vntrp/mysql-workshop-2","forks_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/forks","keys_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/teams","hooks_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/hooks","issue_events_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/issues/events{/number}","events_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/events","assignees_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/assignees{/user}","branches_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/branches{/branch}","tags_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/tags","blobs_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/git/refs{/sha}","trees_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/statuses/{sha}","languages_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/languages","stargazers_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/stargazers","contributors_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/contributors","subscribers_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/subscribers","subscription_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/subscription","commits_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/commits{/sha}","git_commits_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/git/commits{/sha}","comments_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/comments{/number}","issue_comment_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/issues/comments{/number}","contents_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/contents/{+path}","compare_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/merges","archive_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/downloads","issues_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/issues{/number}","pulls_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/pulls{/number}","milestones_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/milestones{/number}","notifications_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/labels{/name}","releases_url":"https://api.github.com/repos/vntrp/mysql-workshop-2/releases{/id}","created_at":"2015-09-22T14:16:01Z","updated_at":"2015-09-20T11:45:48Z","pushed_at":"2015-09-22T16:46:00Z","git_url":"git://github.com/vntrp/mysql-workshop-2.git","ssh_url":"git@github.com:vntrp/mysql-workshop-2.git","clone_url":"https://github.com/vntrp/mysql-workshop-2.git","svn_url":"https://github.com/vntrp/mysql-workshop-2","homepage":null,"size":324,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"DecodeMTL:master","ref":"master","sha":"ed04a00342955f3e3d7df36abe185abcdd71be3e","user":{"login":"DecodeMTL","id":14301039,"avatar_url":"https://avatars.githubusercontent.com/u/14301039?v=3","gravatar_id":"","url":"https://api.github.com/users/DecodeMTL","html_url":"https://github.com/DecodeMTL","followers_url":"https://api.github.com/users/DecodeMTL/followers","following_url":"https://api.github.com/users/DecodeMTL/following{/other_user}","gists_url":"https://api.github.com/users/DecodeMTL/gists{/gist_id}","starred_url":"https://api.github.com/users/DecodeMTL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DecodeMTL/subscriptions","organizations_url":"https://api.github.com/users/DecodeMTL/orgs","repos_url":"https://api.github.com/users/DecodeMTL/repos","events_url":"https://api.github.com/users/DecodeMTL/events{/privacy}","received_events_url":"https://api.github.com/users/DecodeMTL/received_events","type":"Organization","site_admin":false},"repo":{"id":42811011,"name":"mysql-workshop-2","full_name":"DecodeMTL/mysql-workshop-2","owner":{"login":"DecodeMTL","id":14301039,"avatar_url":"https://avatars.githubusercontent.com/u/14301039?v=3","gravatar_id":"","url":"https://api.github.com/users/DecodeMTL","html_url":"https://github.com/DecodeMTL","followers_url":"https://api.github.com/users/DecodeMTL/followers","following_url":"https://api.github.com/users/DecodeMTL/following{/other_user}","gists_url":"https://api.github.com/users/DecodeMTL/gists{/gist_id}","starred_url":"https://api.github.com/users/DecodeMTL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DecodeMTL/subscriptions","organizations_url":"https://api.github.com/users/DecodeMTL/orgs","repos_url":"https://api.github.com/users/DecodeMTL/repos","events_url":"https://api.github.com/users/DecodeMTL/events{/privacy}","received_events_url":"https://api.github.com/users/DecodeMTL/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DecodeMTL/mysql-workshop-2","description":"","fork":false,"url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2","forks_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/forks","keys_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/teams","hooks_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/hooks","issue_events_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/issues/events{/number}","events_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/events","assignees_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/assignees{/user}","branches_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/branches{/branch}","tags_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/tags","blobs_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/git/refs{/sha}","trees_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/statuses/{sha}","languages_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/languages","stargazers_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/stargazers","contributors_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/contributors","subscribers_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/subscribers","subscription_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/subscription","commits_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/commits{/sha}","git_commits_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/git/commits{/sha}","comments_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/comments{/number}","issue_comment_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/issues/comments{/number}","contents_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/contents/{+path}","compare_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/merges","archive_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/downloads","issues_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/issues{/number}","pulls_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/pulls{/number}","milestones_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/milestones{/number}","notifications_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/labels{/name}","releases_url":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/releases{/id}","created_at":"2015-09-20T11:45:48Z","updated_at":"2015-09-20T11:45:48Z","pushed_at":"2015-09-22T16:42:57Z","git_url":"git://github.com/DecodeMTL/mysql-workshop-2.git","ssh_url":"git@github.com:DecodeMTL/mysql-workshop-2.git","clone_url":"https://github.com/DecodeMTL/mysql-workshop-2.git","svn_url":"https://github.com/DecodeMTL/mysql-workshop-2","homepage":null,"size":1396,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":34,"forks":12,"open_issues":34,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/pulls/61"},"html":{"href":"https://github.com/DecodeMTL/mysql-workshop-2/pull/61"},"issue":{"href":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/issues/61"},"comments":{"href":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/pulls/61/comments"},"review_comment":{"href":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/pulls/61/commits"},"statuses":{"href":"https://api.github.com/repos/DecodeMTL/mysql-workshop-2/statuses/ec584521937312f7336bf521ada0ea364c9f11f7"}}}}