How to Filter with the WHERE clause in SQL

Поделиться
HTML-код
  • Опубликовано: 16 окт 2024
  • Filter your SQL table for the information you need by using the WHERE clause!
    Queries using WHERE:
    1) Filter your query based on an exact match: SELECT * FROM table WHERE column='value'
    2) Filter your query using Wildcards to match a pattern: SELECT * FROM table WHERE column LIKE '%str%ing%'
    3) Filter your query using numeric operators: SELECT * FROM table WHERE column &lt 5
    4) Beef up your filters by using the AND & OR statements: SELECT * FROM table WHERE (column1 &lt 5 AND column2 LIKE '%a%') OR column3 = 1
    5) Exlude info from you query using the NOT clause: SELECT * FROM table WHERE NOT column1 = 1
    6) Pull a range of information using the BETWEEN clause: SELECT * FROM table WHERE column1 BETWEEN 1 AND 5
    7) Extract all the NULL or NOT NULL values out of your table: SELECT * FROM table WHERE column1 IS NULL
    Get the Northwind Database: • How to Load a Sample P...
    Support the Channel:
    1) Subscribe:
    2) DataCamp:
    3) Udacity:

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

  • @rainnedaze9659
    @rainnedaze9659 3 года назад +13

    So glad I found this. This is so direct and clear. Thank you!

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

      Badly he dont have a lot of videos did u find other good course for sql server?

  • @b.sanjay5720
    @b.sanjay5720 6 месяцев назад +3

    Very Important topics SQL for data science learn

  • @NinaTucker123
    @NinaTucker123 3 месяца назад +1

    Just subscribed thank you for all your information you break it down so well

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

    You’re amazingly awesome. Love the way you teach SQL. You make everything simplest possible.

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

      Badly he dont have a lot of videos did u find other good course for sql server?

  • @ImranKhan-ft7ns
    @ImranKhan-ft7ns Год назад +1

    Thank you so much for the clear explanation.

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

    you are helping so many people , thank you!

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

    I just want to say thank you so much for this

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

    Thank you so much for your video! they are easy and you get straight to the point :)

  • @IamNagendra_yadav
    @IamNagendra_yadav 11 месяцев назад

    you're amazing one video is enough for WHERE clause

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

    Thank you so much for your help. I was struggling with the WHERE statement (filter data by listing all managers). In my case it was listing all movies released in January, February etc. Thanks again God Bless 😇👍

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

    Thank you! This playlist is very helpful.

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

    This was beyond helpful thank you so mcuh!!!

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

    Great video, please keep making more. they are very helpful!

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

      Badly he dont have a lot of videos did u find other good course for sql server?

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

    your videos are just perfect ❤

  • @Larva07
    @Larva07 4 года назад

    I like your videos and I think they are a good choice for those who have the basic idea. Have you considered giving some practices at the end of the video or a video full or practices with the answer?

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

      Badly he dont have a lot of videos did u find other good course for sql server?

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

    Its really great and underrate video, thanks alot

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

    So helpful, thank you.

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

    Hi
    What will happen if we have a select query with multiple conditions in where clause (mix of equal to, not equal to, between, greater than, less than) with and/or without parentheses?
    Will it fetch correct results?
    Please let me know.
    Thank you!

  • @Travel_VlogTz
    @Travel_VlogTz 5 месяцев назад

    Your vedeo is helpful

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

    Thank you. Really helpful!

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

    Very helpful! Thank you!

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

    percent sign is called a modulo

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

    Appreciate your work

  • @ManojKumar-zn2gf
    @ManojKumar-zn2gf 2 года назад

    For example country column is holding some country names like USA, UK, India, Australia and some Null values, In my case I need to filter country name 'USA' and fields which is 'NULL' in single where condition. Does there is any other way to filter these condition. Pls let me know answer to this question. Note: Null is not a value in that country column.

  • @mulugetakebede6651
    @mulugetakebede6651 4 года назад

    Thank you brother, this is so helpfull

    • @becomingADS
      @becomingADS  4 года назад

      Thank you very much! Happy to hear it helped ya out!

    • @reddyreddy5577
      @reddyreddy5577 4 года назад

      ruclips.net/video/i2BjvSNJprA/видео.html

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

    Hello,could i get help on how to join 5 tables please.David

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

    thank you

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

    1 MILLION TIMES BETTERTHEN MY TEACHER AT SCHOOL