SQL TUTORIAL - COALESCE, ISNULL

Поделиться
HTML-код
  • Опубликовано: 6 сен 2024
  • Tutorial on how to use COALESCE and ISNULL
    Shows the differences between COALESCE and ISNULL

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

  • @lydialim1993
    @lydialim1993 5 лет назад +6

    Thank you so much for your great content! Your channel is very underrated!

  • @subhanmehdizade3529
    @subhanmehdizade3529 3 года назад +4

    Thank you very much for priceless explanation and effort you spend for us. Thanks, sir!

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

    Thanks for another great video. Tackling the two clauses together with consecutive examples was very helpful!

  • @marcinkoczot2059
    @marcinkoczot2059 Год назад +1

    Really nice tutorial!! I like your voice.

  • @Helloimtheshiieet
    @Helloimtheshiieet Год назад +1

    I'm so late to your videos but love them man. You've done a really good job with your energy and and posing questions during walkthrough. SQL can be confusing (im a SQL/Tableau dev).

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

      Fantastic, thanks so much Trevor. I'm just taking a break as we have a new addition to the family but will be back at the beginning of next year with more content.

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

    Explained clearly. Great video

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

    Great explanation, very helpful

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

    Another great video. Thanks

  • @sabaamanollahi5901
    @sabaamanollahi5901 2 года назад +1

    thanks for the great video, I learned a lot

  • @JM_utube
    @JM_utube 4 года назад +2

    great video thank you very much

  • @anlithsimha9577
    @anlithsimha9577 5 лет назад +1

    Excellent please upload videos on Dead locks, Blocking, Table partion

  • @moepimaile5089
    @moepimaile5089 7 лет назад

    Help please
    Album Discount!!
    How do you solve this question please Sir
    Write a single SQL statement to list albums with four columns: the title of the album, the total number of track in that album, the price of the album, and the discounted price of the album. All albums priced above forty dollars wpuld be given a ten percent discount.All other albums would be given a discounted price N/A in the output.
    Exclude albums that are priced lower than thirty dollars from the output. Rename the column headins appropritely and sort the output by price decendingly.

    • @BeardedDevData
      @BeardedDevData  7 лет назад

      Can you show me your query so far?

    • @BeardedDevData
      @BeardedDevData  7 лет назад +1

      Hi Moepi,
      Did you manage to solve the problem or would you like me to do a video on this?
      You would need to use a CASE statement for this, however there would be an issue with the data type of the discounted column, if you want to show price then normally you would use DECIMAL data type but this would not accept N/A in the result, so if you needed N/A you would have to use a string data type.
      Please let me know if you need any assistance.

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

    coa les. It's pronounced like co less... ARRRRGGGG!!!! /ˌkōəˈles/

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

      It’s pronounced kow-uh-les in both British and American, don’t worry though if you’ve been pronouncing it incorrectly, that’s not what’s important.

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

      @@BeardedDevData I'd write it ko-a-less, but not so far from your spelling. So I'm wondering why you pronounce it kow-uh-LEASE. I've never heard it pronounced that way. Is it a regional thing? How would you pronounce it outside of the SQL environment? Not saying its wrong, just interested!

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

      @@EASYTIGER10 I should pronounce it how you have stated but I've just got in to the habit of pronouncing the end lease for some reason, just one of those things, it's not really a word I use everyday outside of SQL so hard for me to comment