Skip to content

Instantly share code, notes, and snippets.

@ArCiGo
Created May 19, 2019 21:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ArCiGo/5a5fe5fd18d0436e7fc91b001711f4e7 to your computer and use it in GitHub Desktop.
Save ArCiGo/5a5fe5fd18d0436e7fc91b001711f4e7 to your computer and use it in GitHub Desktop.
SELECT UPPER(cus.FirstName)
FROM Customer cus;
GO
/** Output **/
----------------------------------------
PAOLO
PEDRO
MARIA
MIGUEL
VICTORIA
BERNARDO
HELEN
...
SELECT LOWER(cus.FirstName)
FROM Customer cus;
GO
/** Output **/
----------------------------------------
paolo
pedro
maria
miguel
victoria
bernardo
helen
...
SELECT LEFT(cus.FirstName, 2)
FROM Customer cus;
GO
/** Output **/
----
Pa
Pe
Ma
Mi
Vi
Be
He
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment