SQL | NOT IN Vs NOT EXISTS (Which one to use?)

Поделиться
HTML-код
  • Опубликовано: 23 янв 2023
  • In this tutorial, we discuss the differences between NOT IN and NOT EXISTS.
    How to install SQL Server for practice?
    • How to install SQL Ser...
    Check out the complete list of SQL Query Interview Questions -
    • SQL Query Interview Qu...
    Best Data Science / Analytics / SQL courses
    Learn SQL Basics for Data Science Specialization
    imp.i384100.net/qnXYk5
    Beginners to Python Programming
    skillshare.eqcm.net/GjMakm
    Data Science and Business Analytics with Python
    skillshare.eqcm.net/JrM1Aq
    IBM Data Science Professional Certificate
    imp.i384100.net/LPQvg3
    Data Science Fundamentals with Python and SQL Specialization
    imp.i384100.net/mgVYre
    Python for Everybody Specialization
    imp.i384100.net/DVz7Aj
    Google Data Analytics Professional Certificate
    imp.i384100.net/OR37oQ
    Coursera Plus - Data Science Career Skills
    imp.i384100.net/c/3299742/132...
    Please do not forget to like, subscribe and share.
    For enrolling and enquiries, please contact us at
    Website - knowstar.org/
    Instagram - / learn.knowstar
    Facebook - / knowstartrainings
    Linkedin - www.linkedin.com/company/know...
    Email - learn@knowstar.org

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

  • @phdjdoug4899
    @phdjdoug4899 10 месяцев назад +1

    This is the best video explanation I've come across so far that helps me understand not only the difference between NOT IN and NOT EXISTS, but also EXISTS more broadly. Thank you!

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

    Thank you, this was really helpful.

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

    Awesome explanation madam, really appriciate your videos... I was banging my head why (NOT IN) operator is not woring as expected.. now after watching your video I know why.

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

    Thank you for another usefull video.
    I have a question - there is any difference when we make a inner join comparing with a join on exists not where having a 1 to many relationship?
    Thank you

  • @blse2000
    @blse2000 2 месяца назад

    Amazing, Thank you.

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

    Interesting concept of null comparison in SQL. Thank you!

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

    Very informative

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

    This video is very handy, corelated subquery and where conditions.

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

    Hi, how to fix this. After creating a table, I can't see where the table is?Before I had the success of creating a table but now i can't see the table after creating the table, Thank you

  • @rk-ej9ep
    @rk-ej9ep Год назад

    Nice explanation...👍

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

    What is difference between IN Operator and EXISTS Operator ?Which is Faster? can you make it video on this

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

    please provide the create and insert table scripts this will help everyone

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

      -- dbo.Employee table
      create table dbo.TblEmployee
      (
      EmpID INT not null PRIMARY KEY,
      DeptID INT not null,
      SubDeptID NCHAR (10)
      )
      -- Inserted values
      INSERT into dbo.TblEmployee (EmpID, DeptID, SubDeptID)
      VALUES
      (1001,1,'A'),
      (1002,2,'X'),
      (1003,3,'A'),
      (1004,4,'A'),
      (1005,5,'A')
      -- dbo.TblDept
      create table dbo.TblDept
      (
      DeptID INT not null IDENTITY(1,1) PRIMARY KEY,
      SubDeptID NCHAR(10) not null
      )
      -- Inserted values
      insert into dbo.TblDept (SubDeptID)
      VALUES
      ('A'),
      ('A'),
      ('B'),
      ('A')

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

      My bad, I forgot to add the NULL in the TblDept table

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

      @@filipzivkovic4866
      Hi bro plz tell : where is less Work load , less work Pressure & less Working Hrs. - as a Data Analyst or as Machine learning Engineer or as a Data Scientists ?

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

    It Should be "............WHERE DEPTID NOT EXISTS............" . can you elaborate more............