{"id":556,"date":"2017-09-14T11:53:10","date_gmt":"2017-09-14T15:53:10","guid":{"rendered":"https:\/\/folvera.commons.gc.cuny.edu\/?p=556"},"modified":"2021-09-16T14:58:03","modified_gmt":"2021-09-16T18:58:03","slug":"database-administration-fundamentals-sf17sql1001-day-5","status":"publish","type":"post","link":"https:\/\/folvera.commons.gc.cuny.edu\/?p=556","title":{"rendered":"Database Administration Fundamentals (SF17SQL1001) &#8211; Day 5"},"content":{"rendered":"<p>We are 50% done with the course.<\/p>\n<ol>\n<li><em>Understanding core database concepts<\/em> &#8212; lots of theory<\/li>\n<li><em>Creating database objects<\/em> &#8212; next week<\/li>\n<li><em>Manipulating data<\/em> &#8212; what we have done in the past two weeks<\/li>\n<\/ol>\n<p>We have covered various <a title=\" title=\" href=\"https:\/\/docs.microsoft.com\/en-us\/sql\/t-sql\/functions\/functions\" target=\"_blank\" rel=\"noopener\">T-SQL functions<\/a> for strings and numbers. For example, we covered a way to capitalize the first character of a-single-word field or variable (<tt>@word<\/tt> declared as a <tt>VARCHAR(10)<\/tt> and initialized as <tt>'tImE'<\/tt>, in the example below).<\/p>\n<pre>DECLARE @word VARCHAR(10) = 'tImE';\r\n\r\nPRINT CONCAT (\r\n    UPPER(LEFT(@word, 1)),\r\n    LOWER(SUBSTRING(@word, 2, LEN(@word)-1))\r\n    );\r\n<\/pre>\n<p>You can download the\u00a0<a title=\"Microsoft Docs - What are the Microsoft SQL database functions?\" href=\"https:\/\/opbuildstorageprod.blob.core.windows.net\/output-pdf-files\/en-us\/SQL.sql-content\/live\/t-sql\/functions.pdf\" target=\"_blank\" rel=\"noopener\">845-page PDF from Microsoft Docs<\/a> for much more information.<\/p>\n<p>Download the\u00a0<a title=\"Class Notes for SF17SQL1001 - Day 5 (2017\/09\/13)\" href=\"https:\/\/folvera.commons.gc.cuny.edu\/wp-content\/blogs.dir\/2501\/files\/2017\/09\/SF17SQL1001.20170913.pdf\">class notes<\/a>\u00a0for day 5.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We are 50% done with the course. Understanding core database concepts &#8212; lots of theory Creating database objects &#8212; next week Manipulating data &#8212; what we have done in the past two weeks We have covered various T-SQL functions for strings and numbers. For example, we covered a way to capitalize the first character of [&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":[20,3,1,17,2],"tags":[],"class_list":["post-556","post","type-post","status-publish","format-standard","hentry","category-sf17sql1001","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\/556","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=556"}],"version-history":[{"count":3,"href":"https:\/\/folvera.commons.gc.cuny.edu\/index.php?rest_route=\/wp\/v2\/posts\/556\/revisions"}],"predecessor-version":[{"id":560,"href":"https:\/\/folvera.commons.gc.cuny.edu\/index.php?rest_route=\/wp\/v2\/posts\/556\/revisions\/560"}],"wp:attachment":[{"href":"https:\/\/folvera.commons.gc.cuny.edu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/folvera.commons.gc.cuny.edu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=556"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/folvera.commons.gc.cuny.edu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}