SQL String Functions Tutorial (LEFT, RIGHT, POSITION, CONCAT, LOWER, REPLACE)

Поделиться
HTML-код
  • Опубликовано: 27 сен 2024
  • A step-by-step video tutorial on the most popular SQL string functions like CHAR_LENGTH, LEFT/RIGHT, CONCAT, POSITION, UPPER/LOWER, and REPLACE!
    List of string functions:
    Queries:
    1) Get the number of characters in a string: SELECT CHAR_LENGTH(column1) FROM table
    2) Get a certain number of characters starting from the left: SELECT LEFT(column1, 5) FROM table
    3) Get a certain number of characters starting from the right: SELECT RIGHT(column1, 5) FROM table
    4) Get the position of a character in a string: SELECT POSITION(' ' IN column1) FROM table
    5) Combine strings together: SELECT CONCAT(column1,' ',column2) FROM table
    6) Make all the characters in a string lowercase: SELECT LOWER(column1) FROM table
    7) Make all characters in a string uppercase: SELECT UPPER(column1) FROM table
    8) Replace characters in a string: SELECT REPLACE(column1,' ','') FROM table
    Get the Northwind Database: • How to Load a Sample P...
    Support the Channel:
    1) Subscribe:
    2) DataCamp:
    3) Udacity:

Комментарии • 38

  • @jehushaphat
    @jehushaphat 3 года назад +2

    Of all the SQL videos out there, yours have been the most helpful to me!

  • @jananiarunachalam6678
    @jananiarunachalam6678 3 года назад +5

    Thank you for these great tutorials! Can't stress how much I appreciate these.

    • @shepherdangel3370
      @shepherdangel3370 3 года назад

      i realize it's pretty randomly asking but do anybody know a good site to stream new tv shows online?

    • @bradenjefferson8342
      @bradenjefferson8342 3 года назад

      @Shepherd Angel Flixportal =)

    • @shepherdangel3370
      @shepherdangel3370 3 года назад

      @Braden Jefferson thanks, I signed up and it seems to work :D I appreciate it!!

  • @tonyperez2205
    @tonyperez2205 4 года назад +1

    Great job. Your videos are really helping me to understand SQL. THank you for your time!!!

  • @lekhnathsharma9002
    @lekhnathsharma9002 Год назад

    Your way of teaching is pretty cool. Love it :)

  • @michaeljones2843
    @michaeljones2843 3 года назад +1

    Thanks, these videos are short and to the point, and so very helpful!

  • @Victoria-dh9jp
    @Victoria-dh9jp Год назад

    It was really helpful. God bless you

  • @definitelynotmpc4147
    @definitelynotmpc4147 Год назад +4

    Yo, where did the SQL joins tutorial go? I clicked on this video (seeing "LEFT") and though it was the joins one but I can't find it anywhere

  • @itsReshad
    @itsReshad 2 года назад

    Great video and explanation! Thank you so much - keep the good content coming my friend!

  • @nohbu9838
    @nohbu9838 3 года назад

    This was great, clear and concise

  • @jettecantoria
    @jettecantoria Год назад

    Thank you. You are awesome!

  • @SjeetjeMineetje
    @SjeetjeMineetje 3 года назад

    Thank you, watched a few of your SQL videos now and they're all really well explained!!

  • @markwade4048
    @markwade4048 Год назад

    Very helpful, great video

  • @factorise001
    @factorise001 2 года назад

    really appreciate the knowledge

  • @liyuanfeng497
    @liyuanfeng497 3 года назад

    really awesome videos during my learning journey, so helpful!

  • @thegymteachersgrandma
    @thegymteachersgrandma 2 года назад

    Nice, just got in and it says sql error.... lovin it

  • @Nyansabln
    @Nyansabln 10 месяцев назад

    Thank you !

  • @estebandiaz1306
    @estebandiaz1306 2 года назад

    Great video!

  • @nikunjgupta7277
    @nikunjgupta7277 3 года назад

    Really helpful, thanks a lot!

  • @adiflorense1477
    @adiflorense1477 3 года назад +1

    very help!

  • @deyscube577
    @deyscube577 Год назад

    I want to see all the data when you replaced then what will be the syntex

  • @ganeshch8840
    @ganeshch8840 2 года назад

    thanks mate.

  • @rayyuda4358
    @rayyuda4358 2 года назад

    Explain lag and lead function please! Thanks in advance

  • @juliawoodcock5782
    @juliawoodcock5782 3 года назад

    Very helpful, thanl you

  • @김도형-g2i
    @김도형-g2i 3 года назад

    this is so good!!!

  • @GregMoranCom
    @GregMoranCom 3 года назад

    Awesome Videos: I am new and came across this: Any wisdom on how to display? Thx

    • @GregMoranCom
      @GregMoranCom 3 года назад

      it is in a cell labeled info

  • @rajupaudel1660
    @rajupaudel1660 3 года назад +2

    Hey Sir, what about the those who has the middle name and if we want to separate middle name as well ?? Could you please make a video on that as well. Thank you!!

    • @RIVEXNGLE
      @RIVEXNGLE 2 года назад

      Likewise, companies that tack the suffix onto the last name.

    • @stri06
      @stri06 Год назад

      @@RIVEXNGLE use MID & POSITION

  • @musondaben7052
    @musondaben7052 3 года назад

    How can you find the position of a space in a name

  • @ianpropst-campbell6028
    @ianpropst-campbell6028 2 года назад +2

    Great video! Really appreciated seeing the example of using the combination of left, right, char_length and position to separate first and last name

  • @higiniofuentes2551
    @higiniofuentes2551 2 года назад

    You are using Postgres, but if you use another db, these functions are spelled the same?

  • @higiniofuentes2551
    @higiniofuentes2551 2 года назад

    Thank you for this very useful video!

  • @juliakristavilladiego4425
    @juliakristavilladiego4425 3 года назад

    Thank you. Really helpful! :)