{"id":1257,"date":"2024-03-14T08:08:50","date_gmt":"2024-03-14T12:08:50","guid":{"rendered":"https:\/\/folvera.commons.gc.cuny.edu\/?p=1257"},"modified":"2024-03-14T08:08:50","modified_gmt":"2024-03-14T12:08:50","slug":"introduction-to-structured-query-language-for-data-analytics-ws24sql10001-day-2","status":"publish","type":"post","link":"https:\/\/folvera.commons.gc.cuny.edu\/?p=1257","title":{"rendered":"Introduction to Structured Query Language for Data Analytics (WS24SQL10001) \u2014 Day 2"},"content":{"rendered":"<p>We&#8217;ve started writing code.<\/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    INNER|LEFT|RIGHT JOIN 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>Do not forget to always make your code look good, formatted and legible &#8212; in other word, good etiquette. You might want to use a product like PoorSQL (free) either on-line or as a plug-in for a local program like Notepad++.<\/p>\n<p>Download the <a href=\"https:\/\/folvera.commons.gc.cuny.edu\/wp-content\/blogs.dir\/2501\/files\/2024\/03\/WS24SQL10001_20240313.pdf\">class notes<\/a> for day 2.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ve started writing code. SELECT field1, field2&#8230; FROM table1 AS t1 INNER|LEFT|RIGHT JOIN table2 AS t2 ON t1.common_data = t2.common_data; Do not forget to always make your code look good, formatted and legible &#8212; in other word, good etiquette. You might want to use a product like PoorSQL (free) either on-line or as a plug-in [&hellip;]<\/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":[34,3,1,2],"tags":[],"class_list":["post-1257","post","type-post","status-publish","format-standard","hentry","category-ws24sql10001","category-computer-programming","category-cuny","category-sql"],"_links":{"self":[{"href":"https:\/\/folvera.commons.gc.cuny.edu\/index.php?rest_route=\/wp\/v2\/posts\/1257","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=1257"}],"version-history":[{"count":1,"href":"https:\/\/folvera.commons.gc.cuny.edu\/index.php?rest_route=\/wp\/v2\/posts\/1257\/revisions"}],"predecessor-version":[{"id":1260,"href":"https:\/\/folvera.commons.gc.cuny.edu\/index.php?rest_route=\/wp\/v2\/posts\/1257\/revisions\/1260"}],"wp:attachment":[{"href":"https:\/\/folvera.commons.gc.cuny.edu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/folvera.commons.gc.cuny.edu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1257"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/folvera.commons.gc.cuny.edu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}