Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. SELECT LEFT(cus.FirstName, 2)
  2. FROM Customer cus
  3.  
  4. /*Results*/
  5. ----
  6. Pa
  7. Pe
  8. Ma
  9. Mi
  10. Vi
  11. [...]
  12.  
  13. ----------
  14.  
  15. SELECT RIGHT(cus.FirstName, 2)
  16. FROM Customer cus
  17.  
  18. /*Results*/
  19. ----
  20. lo
  21. ro
  22. ia
  23. el
  24. ia
  25.  
  26. ----------
  27.  
  28. SELECT LTRIM(' Removes trailing spaces.')
  29.  
  30. /*Results*/
  31. -------------------------
  32. Removes trailing spaces.
  33.  
  34. ----------
  35.  
  36. SELECT RTRIM('Removes trailing spaces. ')
  37.  
  38. /*Results*/
  39. -------------------------
  40. Removes trailing spaces.
  41.  
  42. ----------
  43.  
  44. SELECT SUBSTRING(cus.FirstName, 2, 3)
  45. FROM Customer cus
  46.  
  47. /*Results*/
  48. ----
  49. aol
  50. edr
  51. ari
  52. igu
  53. ict
  54. [...]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement