Using DISTINCT in SQL

Поділитися
Вставка
  • Опубліковано 13 гру 2024

КОМЕНТАРІ • 19

  • @COOKINGBIRD
    @COOKINGBIRD Рік тому +2

    Just wanted to express my gratitude for the SQL video. It's been a game-changer in my learning journey! 😄📹💻🔍

    • @DatabasebyDoug
      @DatabasebyDoug  Рік тому

      Thanks for your kind words! Very happy to know it helped!

  • @referralhelper
    @referralhelper Рік тому

    You make this stuff easy to understand Doug. Thanks

  • @KassiRodriguez1
    @KassiRodriguez1 2 роки тому

    Thanks for posting Doug! This helped very much and was very easy to understand and follow!

  • @danievanrensburg1168
    @danievanrensburg1168 3 роки тому

    Good job dude, underrated video

  • @hadiyousefpour8768
    @hadiyousefpour8768 11 місяців тому

    Thanks for easy to understand and helpful video.

  • @kowserparvez3355
    @kowserparvez3355 Рік тому

    Have a quick question. I have s table with 423 fields. Would like to find if there is null value for any of the fields. Some reason can’t make a query to do this. TIA.

    • @DatabasebyDoug
      @DatabasebyDoug  6 місяців тому

      It might be painful, but probably having 423 expressions (field1 IS NULL) in the WHERE clause combined with 422 ORs is the most direct way. It's painful to type, so I'll sometimes use something like SELECT name FROM sys.columns WHERE object_id = OBJECT_ID("tableName). Then build up my intended WHERE clause like this:
      SELECT name & ' IS NULL' FROM...
      Then copy/paste into a text editor to write the rest of the SELECT statement.

    • @DatabasebyDoug
      @DatabasebyDoug  6 місяців тому

      revised last line:
      SELECT 'OR ' & name & ' IS NULL'

  • @rogonerogue
    @rogonerogue 3 роки тому

    Thank you! This is very helpful and easy to understand!

  • @alfredsanthosh2699
    @alfredsanthosh2699 3 роки тому

    Sir,
    Thank u so much
    This helped me find my answers for my assignment at the very last second.......
    Thanks alot
    Wishing you all the best

  • @sahitbytyqi1813
    @sahitbytyqi1813 2 роки тому

    For some out there i might help u because this video helped me alot
    if u struggling a lot and cant find why this is not working be sure u writing good
    DISTINCT instead of DINSTINC ------ This happend to me. :)

  • @jaskiratrattu9060
    @jaskiratrattu9060 5 місяців тому

    Where we get tables ??

  • @xesiusprime9360
    @xesiusprime9360 3 роки тому

    what database program are you using here?

  • @JudgeDreddMegaCityOne
    @JudgeDreddMegaCityOne 4 роки тому +1

    This is awesome. Thanks!

  • @yogitammineni7060
    @yogitammineni7060 3 роки тому

    What is the distinct of batch_month tell me how to do

  • @scottgh
    @scottgh 2 роки тому

    Very helpful. Thanks!

  • @pinksociiety6987
    @pinksociiety6987 3 роки тому

    great video! thank you!

  • @frankcunningham455
    @frankcunningham455 Рік тому

    Thank you!