{"id":608,"date":"2018-02-08T11:05:04","date_gmt":"2018-02-08T16:05:04","guid":{"rendered":"https:\/\/folvera.commons.gc.cuny.edu\/?p=608"},"modified":"2021-09-16T14:57:58","modified_gmt":"2021-09-16T18:57:58","slug":"database-administration-fundamentals-ws18sql1001-day-2","status":"publish","type":"post","link":"https:\/\/folvera.commons.gc.cuny.edu\/?p=608","title":{"rendered":"Database Administration Fundamentals (WS18SQL1001) \u2013 Day 2"},"content":{"rendered":"<p>We have started having fun with built-in <a title=\"SQL Server: Functions - Listed by Category\" href=\"https:\/\/www.techonthenet.com\/sql_server\/functions\/index.php\" target=\"_blank\" rel=\"noopener\">functions<\/a> (set of instructions) for strings (character arrays).<\/p>\n<ol>\n<li><a title=\"SQL Server: UPPER Function\" href=\"http:\/\/www.techonthenet.com\/sql_server\/functions\/upper.php\" target=\"_blank\" rel=\"noopener\"><tt>UPPER()<\/tt><\/a> &#8212; upper case<\/li>\n<li><a title=\"SQL Server: LOWER Function\" href=\"http:\/\/www.techonthenet.com\/sql_server\/functions\/lower.php\" target=\"_blank\" rel=\"noopener\"><tt>LOWER()<\/tt><\/a> &#8212; lower case<\/li>\n<li><a title=\"SQL Server: RTRIM Function\" href=\"http:\/\/www.techonthenet.com\/sql_server\/functions\/rtrim.php\" target=\"_blank\" rel=\"noopener\"><tt>RTRIM()<\/tt><\/a> &#8212; trim spaces on the right<\/li>\n<li><a title=\"SQL Server: LTRIM Function\" href=\"http:\/\/www.techonthenet.com\/sql_server\/functions\/ltrim.php\" target=\"_blank\" rel=\"noopener\"><tt>LTRIM()<\/tt><\/a> &#8212; trim spaces on the left<\/li>\n<li><a title=\"SQL Server: RIGHT Function\" href=\"http:\/\/www.techonthenet.com\/sql_server\/functions\/right.php\" target=\"_blank\" rel=\"noopener\"><tt>RIGHT()<\/tt><\/a> &#8212; part of a string starting on the right<\/li>\n<li><a title=\"SQL Server: LEFT Function\" href=\"http:\/\/www.techonthenet.com\/sql_server\/functions\/left.php\" target=\"_blank\" rel=\"noopener\"><tt>LEFT()<\/tt><\/a> &#8212; part of a string starting on the left<\/li>\n<li><a title=\"SQL Server: SUBSTRING Function\" href=\"http:\/\/www.techonthenet.com\/sql_server\/functions\/substring.php\" target=\"_blank\" rel=\"noopener\"><tt>SUBSTRING()<\/tt><\/a> &#8212; part of a string in the middle<\/li>\n<li><a title=\"SQL Server: LEN Function\" href=\"http:\/\/www.techonthenet.com\/sql_server\/functions\/len.php\" target=\"_blank\" rel=\"noopener\"><tt>LEN()<\/tt><\/a> &#8212; length of a string<\/li>\n<li><a title=\"SQL Server: REPLACE Function\" href=\"http:\/\/www.techonthenet.com\/sql_server\/functions\/replace.php\" target=\"_blank\" rel=\"noopener\"><tt>REPLACE()<\/tt><\/a> &#8212; to replace part of a string<\/li>\n<\/ol>\n<p>Download the\u00a0<a title=\"Class Notes for SF17SQL1001 - Day 2 (2018\/02\/07)\" href=\"https:\/\/folvera.commons.gc.cuny.edu\/wp-content\/blogs.dir\/2501\/files\/2018\/02\/WS18SQL1001_20180207.pdf\">notes<\/a>\u00a0for day 2.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We have started having fun with built-in functions (set of instructions) for strings (character arrays). UPPER() &#8212; upper case LOWER() &#8212; lower case RTRIM() &#8212; trim spaces on the right LTRIM() &#8212; trim spaces on the left RIGHT() &#8212; part of a string starting on the right LEFT() &#8212; part of a string starting on [&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":[21,3,1,17,2],"tags":[],"class_list":["post-608","post","type-post","status-publish","format-standard","hentry","category-ws18sql1001","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\/608","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=608"}],"version-history":[{"count":1,"href":"https:\/\/folvera.commons.gc.cuny.edu\/index.php?rest_route=\/wp\/v2\/posts\/608\/revisions"}],"predecessor-version":[{"id":610,"href":"https:\/\/folvera.commons.gc.cuny.edu\/index.php?rest_route=\/wp\/v2\/posts\/608\/revisions\/610"}],"wp:attachment":[{"href":"https:\/\/folvera.commons.gc.cuny.edu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=608"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/folvera.commons.gc.cuny.edu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=608"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/folvera.commons.gc.cuny.edu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}