{"id":997,"date":"2021-11-10T12:19:29","date_gmt":"2021-11-10T17:19:29","guid":{"rendered":"https:\/\/folvera.commons.gc.cuny.edu\/?p=997"},"modified":"2021-11-10T12:19:29","modified_gmt":"2021-11-10T17:19:29","slug":"database-administration-fundamentals-sf21sql1001-day-3","status":"publish","type":"post","link":"https:\/\/folvera.commons.gc.cuny.edu\/?p=997","title":{"rendered":"Database Administration Fundamentals (SF21SQL1001) \u2013 Day 3"},"content":{"rendered":"<p>We continue manipulating data (without making changes in the database). We have covered functions that affect strings and numeric values &#8212; including <tt>`FORMAT()`<\/tt> to change currency and date values.<\/p>\n<pre><span style=\"color: #ff00ff\">  FORMAT<\/span>(<em>numeric_value<\/em>, <em>format_needed<\/em>, <em>culture<\/em>)\r\n  <span style=\"color: #ff00ff\">FORMAT<\/span>(numeric_value_money, <span style=\"color: #ff0000\">'c'<\/span>, <span style=\"color: #ff0000\">'en-us'<\/span>)\r\n  <span style=\"color: #ff00ff\">FORMAT<\/span>(numeric_value_date,  <span style=\"color: #ff0000\">'d'<\/span>, <span style=\"color: #ff0000\">'en-us'<\/span>)\r\n  <span style=\"color: #ff00ff\">FORMAT<\/span>(numeric_value_date,  <span style=\"color: #ff0000\">'D'<\/span>, <span style=\"color: #ff0000\">'en-us'<\/span>)\r\n<\/pre>\n<p>Download the\u00a0<a title=\"Class Notes for SF21SQL1001 - Day 3 (2021\/11\/09)\" href=\"https:\/\/folvera.commons.gc.cuny.edu\/wp-content\/blogs.dir\/2501\/files\/2021\/11\/SF21SQL1001_20211110.pdf\">class notes<\/a>\u00a0for day 3.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We continue manipulating data (without making changes in the database). We have covered functions that affect strings and numeric values &#8212; including `FORMAT()` to change currency and date values. FORMAT(numeric_value, format_needed, culture) FORMAT(numeric_value_money, &#8216;c&#8217;, &#8216;en-us&#8217;) FORMAT(numeric_value_date, &#8216;d&#8217;, &#8216;en-us&#8217;) FORMAT(numeric_value_date, &#8216;D&#8217;, &#8216;en-us&#8217;) Download the\u00a0class notes\u00a0for day 3.<\/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":[29,3,1,17,2],"tags":[],"class_list":["post-997","post","type-post","status-publish","format-standard","hentry","category-sf21sql1001","category-computer-programming","category-cuny","category-open-source","category-sql"],"_links":{"self":[{"href":"https:\/\/folvera.commons.gc.cuny.edu\/index.php?rest_route=\/wp\/v2\/posts\/997","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=997"}],"version-history":[{"count":1,"href":"https:\/\/folvera.commons.gc.cuny.edu\/index.php?rest_route=\/wp\/v2\/posts\/997\/revisions"}],"predecessor-version":[{"id":999,"href":"https:\/\/folvera.commons.gc.cuny.edu\/index.php?rest_route=\/wp\/v2\/posts\/997\/revisions\/999"}],"wp:attachment":[{"href":"https:\/\/folvera.commons.gc.cuny.edu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=997"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/folvera.commons.gc.cuny.edu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=997"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/folvera.commons.gc.cuny.edu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=997"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}