{"id":1209,"date":"2023-04-06T14:21:47","date_gmt":"2023-04-06T18:21:47","guid":{"rendered":"https:\/\/folvera.commons.gc.cuny.edu\/?p=1209"},"modified":"2023-04-06T14:28:44","modified_gmt":"2023-04-06T18:28:44","slug":"introduction-to-structured-query-language-for-data-analytics-ws23sql1001-day-2","status":"publish","type":"post","link":"https:\/\/folvera.commons.gc.cuny.edu\/?p=1209","title":{"rendered":"Introduction to Structured Query Language for Data Analytics (WS23SQL1001) \u2014 Day 2"},"content":{"rendered":"<p>We are finally writing code to query data from tables.<\/p>\n<pre>    <span style=\"color: #0000ff\">SELECT<\/span> field1, field2...\r\n    <span style=\"color: #0000ff\">FROM<\/span> table1 <span style=\"color: #0000ff\">AS<\/span> t1\r\n    <span style=\"color: #808080\">INNER|LEFT|RIGHT JOIN<\/span> table2 <span style=\"color: #0000ff\">AS<\/span> t2\r\n    <span style=\"color: #0000ff\">ON<\/span> t1.common_data = t2.common_data;\r\n<\/pre>\n<p>Download the <a href=\"https:\/\/folvera.commons.gc.cuny.edu\/wp-content\/blogs.dir\/2501\/files\/2023\/04\/WS23SQL1001_20230405.pdf\">class notes<\/a> for day 2.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We are finally writing code to query data from tables. SELECT field1, field2&#8230; FROM table1 AS t1 INNER|LEFT|RIGHT JOIN table2 AS t2 ON t1.common_data = t2.common_data; Download the class notes for day 2.<\/p>\n","protected":false},"author":7213,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"send_to_group_blog":0,"footnotes":""},"categories":[33,3,1,2],"tags":[],"class_list":["post-1209","post","type-post","status-publish","format-standard","hentry","category-ws23sql1001","category-computer-programming","category-cuny","category-sql"],"_links":{"self":[{"href":"https:\/\/folvera.commons.gc.cuny.edu\/index.php?rest_route=\/wp\/v2\/posts\/1209","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/folvera.commons.gc.cuny.edu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/folvera.commons.gc.cuny.edu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/folvera.commons.gc.cuny.edu\/index.php?rest_route=\/wp\/v2\/users\/7213"}],"replies":[{"embeddable":true,"href":"https:\/\/folvera.commons.gc.cuny.edu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1209"}],"version-history":[{"count":5,"href":"https:\/\/folvera.commons.gc.cuny.edu\/index.php?rest_route=\/wp\/v2\/posts\/1209\/revisions"}],"predecessor-version":[{"id":1215,"href":"https:\/\/folvera.commons.gc.cuny.edu\/index.php?rest_route=\/wp\/v2\/posts\/1209\/revisions\/1215"}],"wp:attachment":[{"href":"https:\/\/folvera.commons.gc.cuny.edu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/folvera.commons.gc.cuny.edu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1209"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/folvera.commons.gc.cuny.edu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}