SQL Tutorial 9: SQL Joins and Sub Queries

Поділитися
Вставка
  • Опубліковано 21 жов 2024
  • Topic : SQL Joins and Sub Queries
    #########################
    Udemy Courses:
    #########################
    Manual Testing+Agile with Jira Tool
    ************************************
    ► shorturl.at/xNXZ4
    Selenium with Java+Cucumber
    ********************************
    ► shorturl.at/aIKMW
    Selenium with Python & PyTest
    ********************************
    ► shorturl.at/ELW09
    Selenium with python using Robot framework
    ****************************************
    ► shorturl.at/bcDPZ
    API Testing(Postman, RestAssured & SoapUI)
    *****************************************
    ► shorturl.at/uAWY7
    Web & API Automation using Cypress with Javascript
    ********************************************
    ► rb.gy/4uum2n
    Playwright with Javascript
    **************************
    ► shorturl.at/gALZ1
    Jmeter-Performance Testing
    ************************
    ► rb.gy/ocj7r2
    SDET Essencials(Full Stack QA)
    *************************
    ► rb.gy/hlnf2v
    Appium-Mobile Automation Testing
    ************************************
    ► rb.gy/wmzv64
    Java Collections
    *****************
    ► bit.ly/3S66ezE
    Python Programming
    *********************
    ► urlis.net/gdsf...
    Cucumber BDD Framework
    ***************************
    ► bit.ly/3F7d69r
    Protractor with Javascript
    ***************************
    ► urlis.net/4udd...
    ####################################
    UA-cam Playlists:
    ####################################
    Manual Testing & Agile
    ***********************
    ► bit.ly/3ujvaYa
    ► bit.ly/3OYzxQj
    SQL
    *************************
    ► bit.ly/3R6XjeG
    ► bit.ly/3nE0a1s
    ► bit.ly/3IeKuuJ
    linux & Shell Scripting
    **********************
    ► bit.ly/3up1Z6a
    ► bit.ly/3nzvGxx
    Java
    **********************
    ► bit.ly/3R9QfOs
    ► bit.ly/3AoRMKM
    ► bit.ly/3IbTTDn
    ► bit.ly/3ybXInv
    ► bit.ly/3yCoHdw
    Selenium With Java+Cucumber
    ********************************
    ► bit.ly/3P2FMm4
    ► bit.ly/3yhiIt4
    ► bit.ly/3uokzet
    ► bit.ly/3a7XIND
    ► bit.ly/3umN2S9
    ► bit.ly/3aar7GW
    ► bit.ly/3y9kD2S
    ► bit.ly/3uhLskn
    Python
    ********************************
    ► bit.ly/3agNgU0
    ► bit.ly/3NJNnoy
    ► bit.ly/2CTQ4mR
    ► bit.ly/3OIYWh1
    Selenium With Python,Pytest&Behave
    ***************************************
    ► bit.ly/3OHHoC9
    ► bit.ly/3IeNLdv
    ► bit.ly/2J4tPeT
    ► bit.ly/3ydSkAq
    Selenium With Python Using Robert Framework
    (Web&API Testing)
    *************************************************
    ► bit.ly/3nUvlpr
    ► bit.ly/3nUvE3z
    API Testing (Postman,SoapUi,&Rest Assured)
    **********************************************
    ► bit.ly/3OXacWY
    ► bit.ly/3yh0UhE
    ► bit.ly/3nC9DWQ
    ► bit.ly/3yGfhNS
    ► bit.ly/3OJa11H
    ► bit.ly/3P2slCC
    Mobile App Testing Appium
    ****************************
    ► bit.ly/3Al49HG
    Performance Testing Jmeter
    *******************************
    ► bit.ly/3nz4fE7
    Maven,Jenkins,Git,Github,CI/CD
    *******************************
    ► bit.ly/3P16HPj
    ► bit.ly/3yhlUVA
    ► bit.ly/3afYfwT
    ► bit.ly/3yGzweG
    ► bit.ly/3yF73Ws
    ► bit.ly/3NCOmH7
    SQL,DB Testing&ETL,Bigdata
    *******************************
    ► bit.ly/3NKOcNY
    ► bit.ly/3OVpDyI
    ► bit.ly/3NEvUy0
    ► bit.ly/3IryxlT
    ► bit.ly/3RkWBLh
    JavaScript Based Automation Tools
    ********************************
    ► bit.ly/3nUx51X
    ► bit.ly/3AqI6Q0
    ► bit.ly/3yeurbT
    ► bit.ly/3ujzpTK
    Selector Hub Tools
    ********************
    ►rb.gy/h3h424
    GraphQL
    ******************
    ► rb.gy/sj3gys
    Cypress API Testing
    ********************
    ► shorturl.at/fjKPX
    Cypress Web Testing
    **********************
    ► shorturl.at/agjlK
    Playwright with Javascipt
    **************************
    ► shorturl.at/adSTY
    #SQLJoins
    #SubQueries
    #SQLTutorial
    #DatabaseJoin
    #InnerJoin
    #OuterJoin
    #LeftJoin
    #RightJoin
    #FullOuterJoin
    #SelfJoin
    #CrossJoin
    #NaturalJoin
    #SQLQueries
    #QueryOptimization
    #DatabaseSkills
    #LearnSQL
    #SQLBasics
    #SQLMastery
    #SQLDatabase
    #StructuredQueryLanguage
    #SQLSyntax
    #DatabaseManagement
    #SQLSkills
    #JoiningData
    #SQLCoding
    #SQLForBeginners
    #SQLTips
    #SQLTricks
    #SQLExamples
    #SQLCommunity
    #DatabaseDesign
    #SQLDevelopment
    #DataAnalysis
    #SQLLearning
    #SQLPractice
    #DatabaseQueries
    #SQLServer
    #SQLExpress
    #DataManipulation
    #SQLPerformance
    #DatabaseNormalization
    #AdvancedSQL
    #SQLQuerying
    #QueryOptimization
    #SQLConcepts
    #DatabaseJoining
    #SubQueryExamples
    #SQLStudents
    #JoiningTables
    #SQLPro

КОМЕНТАРІ • 147

  • @shamikaredkar837
    @shamikaredkar837 3 роки тому +47

    OMG THIS VIDEO LITERALLY SAVED MY LIFE!!! I have an exam on SQL tomorrow and I feel a lot more confident

    • @sdetpavan
      @sdetpavan  3 роки тому +7

      Good luck!!

    • @cashali4747
      @cashali4747 3 роки тому +1

      I guess Im asking randomly but does any of you know a way to log back into an instagram account??
      I stupidly lost my password. I would appreciate any tips you can give me

    • @Bangloreblogs
      @Bangloreblogs 2 роки тому +3

      @@cashali4747 yahi kam kr beta 🤦

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

      Kitna khokha Mila hai 😂

  • @shivachary6764
    @shivachary6764 2 роки тому +11

    Best study channel in the whole UA-cam study channels

  • @r.rajalakshmi369
    @r.rajalakshmi369 7 місяців тому +2

    Thanks a lot sir 🙏. Your explanations are incomparable. Many would've faced lot of issues in understanding complex queries. But you made it understand like a piece of cake. You are awesome sir

    • @sdetpavan
      @sdetpavan  6 місяців тому +1

      You are most welcome

  • @ilohakingsley8100
    @ilohakingsley8100 2 роки тому +5

    Wow, just wow.... With you sir, I would say I am a proud QA Engineer/Data Analyst/Developer in view. All your videos are well explained. More grease to your elbow. Thanks so much.

  • @h-fj2pb
    @h-fj2pb Місяць тому

    What a wonderful explanation of the complex topic in SQL. I am really thankful to you. I have learnt a lot from your other videos too. Thank you so much!

  • @atlanticwriters5908
    @atlanticwriters5908 Рік тому +4

    Among all videos on you tube, you made me understand these things better.

    • @alexiojunior7867
      @alexiojunior7867 2 місяці тому

      very true ,im now starting to follow up on all his videos now

  • @lakshmyjayalakshmy2326
    @lakshmyjayalakshmy2326 2 роки тому +10

    you are the best in this industry... no tutorial can beat this one in particular... Thanks a ton sir

  • @aaronmorber1943
    @aaronmorber1943 4 роки тому +7

    Thank You. I can actually understand you The SqL boot camp intro one was good but after that it took me a while to find a good video that goes more in dept about nested query and or advanced query searches. Than I stumbled on to yours. you are one of the best instructors I found so far and I will keep watching yours.

  • @heenashaikh3350
    @heenashaikh3350 4 роки тому +13

    I understood this joins concept by him after watching hundred other videos.. Thank you

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

      Yes super explanation

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

      It is helpful to understand the concept for beginners. Superb....

  • @mekidtube4404
    @mekidtube4404 4 роки тому +3

    Hi guys why you dislike ? HE SHARING his knowledge please like like like positivity is better

  • @DilshanSandeepa-wh9dv
    @DilshanSandeepa-wh9dv 8 місяців тому +1

    Sir your teaching is very good.I appreciate it ❤

    • @sdetpavan
      @sdetpavan  8 місяців тому

      It's my pleasure

  • @alexiojunior7867
    @alexiojunior7867 2 місяці тому +1

    wow excellent content very easy to follow

  • @bristiadhikary7441
    @bristiadhikary7441 3 роки тому +2

    Best join and sub query video in UA-cam. Thanks a lot sir. It's help me a lot for my interview.

  • @abhishekkhare6175
    @abhishekkhare6175 3 роки тому +5

    very good explanation. the best part about his explanation was that he divided the question into small parts so that it was very easy to understand.

  • @swarnavamseekrishna5011
    @swarnavamseekrishna5011 3 роки тому +6

    Sir, your explanation is fantastic even a dumb guy can understand in that way , thanks a lot sir you deserve guru. Guru Brahma guru vishnu guru devo maheshwara guru sakshath parabrahma thasmaishree guravenamaha.🙏🙏🙏

  • @markandeypandey3227
    @markandeypandey3227 5 місяців тому +1

    Thanks a lot sir for tutorials, helped me a lot to understand joins🙏

  • @deadflower2289
    @deadflower2289 Рік тому +4

    I am thankful for you sir. This will help me in my SQL class.

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

    u r the best sir,i learnt lot from ur testing videos

  • @subhajitchakraborty8724
    @subhajitchakraborty8724 2 роки тому +2

    Hats off to you...
    You made complex queries so smooth...anyone can understand and perform....

  • @bhushanchaudhari8522
    @bhushanchaudhari8522 3 роки тому +3

    one of the best tutor i found thank u sir for giving this kind of deep knowledge

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

    Wow super explanation sir

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

    realy your explaination is better than any other platform , realy amazing

  • @gayathris4422
    @gayathris4422 3 роки тому +4

    Thanks a lot for such a clear explanation 🙏 I have understood it clearly....

  • @sathya1716
    @sathya1716 2 місяці тому

    Hi Sir, I never seen like this kind of explanation. Can you please make python logical programming videos?

  • @srikargudla1517
    @srikargudla1517 11 місяців тому +1

    Thank you very much sir for ur wonderful explanation

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

      You are most welcome

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

    Thank you so much Sir you are the best teacher in youtube i have done manual testing course from your channel and now learning MySQl.

  • @Craze_Lifter
    @Craze_Lifter 11 місяців тому +1

    Excellent lecture

  • @user-om2jr5ut9s
    @user-om2jr5ut9s Рік тому +3

    Sir in the last example you missed a ,comma before salary and after first name . So the salary name was applied as alias for the first name instead of getting salary table.

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

    Hi sir the video is very useful and awesome.can we get data which ur using into the video for using queries.

  • @amritsinghania2722
    @amritsinghania2722 2 роки тому +1

    I am just beginner and it was really helpful

  • @tusharsonwane8468
    @tusharsonwane8468 Рік тому +1

    Superb explanation Thank you so much sir👍

  • @pavanakepati8320
    @pavanakepati8320 2 роки тому +2

    Excellent lectures... 👏

  • @soumya8926
    @soumya8926 2 роки тому +1

    Tq sir tq so much I really like ur way of explanations.. it is very clear and understanding

  • @kanak7725
    @kanak7725 2 роки тому +1

    it's very helpful video to fresher.

  • @mathematicson
    @mathematicson Рік тому +1

    Sir your are teaching is wonderful you are saved my life. I have one suggestion sir please provide the mysql material pdf sir. That pdf is also helpful to many people

  • @mohittripathi1029
    @mohittripathi1029 2 роки тому +1

    Sir aapko bahut bahut pranam

  • @meenaselvam8282
    @meenaselvam8282 3 роки тому +2

    Thank you sir . It was very helpful sir.

  • @tejasree8246
    @tejasree8246 Рік тому +1

    Will u please provide the important interview questions on this topic just like mcqs

  • @saranyachandrabos3541
    @saranyachandrabos3541 2 роки тому +2

    Thank you so much

  • @kavya-g5q
    @kavya-g5q 3 роки тому +1

    awesome explanation sir!tomorrow i can perform well in my lab examination

  • @javashashavali
    @javashashavali Рік тому +1

    Thanks Pavan sir 21:00 sec

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

    this is we call the perfect explanation. Thank you so much sir.

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

    Tq so much sir really very awesome contributions to make vedio
    Im appreciate
    It's very to understand and lern

  • @ninuritu9312
    @ninuritu9312 5 років тому +2

    Thank you for the detailed explanation Sir

  • @pareshmahajan261
    @pareshmahajan261 2 роки тому +2

    Found Mistake in your Tutoiral 9. You said Right outer join as "Returns matched records + unmatched from right table Tab1". So here I am making correction as "Returns matched records + unmatched from right table Tab2" Also, in the same way for left join. Please correct me if I am wrong

  • @AtaurRahman-ft2nh
    @AtaurRahman-ft2nh 3 роки тому +1

    video is helpful but you gave only overview of join and did not do problems on that ....although my subquery concept is now more
    clearer

  • @nehathakkhar1956
    @nehathakkhar1956 4 роки тому +2

    This will make more sense and will be helpful if you can provide HR database link from where we can import. thanks

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

      github.com/nomemory/hr-schema-mysql/find/master

  • @ojasvagupta766
    @ojasvagupta766 2 роки тому +2

    SELECT * FROM EMPLOYEE WHERE SALARY

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

      but some salary in > any is not correct as per my understanding could you please help me to to understand this one

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

    I have a doubt at 36:35 I.e., when you are deriving data from both the tablets it should be like from e.employee, m.manager right but you have mentioned as from e.employee, m.employee.. am bit comfused

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

    SIR SUPER EXPLANATION,, IF YOU PROVIDE SAME DATA,, IT WILL BE BEST FOE US TO PRACTISE THE SAME..

  • @PradipYogi59
    @PradipYogi59 5 років тому +1

    very detailed explanation thank you

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

    thanks for the explanation video it's really useful

  • @AmitKumar-ey2cf
    @AmitKumar-ey2cf Місяць тому

    Sir my humble request please increase quality(360p)

  • @bindhunadh
    @bindhunadh 2 роки тому +1

    Sir if we want to know the second high salary we can keep assending order and the result will come know sir

  • @manthenianurag9721
    @manthenianurag9721 Рік тому +1

    I think at 8:55 duration of this video,
    Left Outer join = Returns matched records + unmatched from left table table 1
    right outer join = Returns matched records + unmatched from right table table 2
    can you clarify it ??

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

    Sir, In multi row query any is giving all the department_id not just 30... I don't understand why??

  • @vinothkumar4142
    @vinothkumar4142 2 роки тому +1

    @1:19:36,
    Kindly provide comma(,) between FIRST_NAME and SALARY. Because at output SALARY has become as Alias name to FIRST_NAME column

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

      Was searching for this comment.😀

  • @simransingla9397
    @simransingla9397 4 роки тому

    Awesome explanation😄😃

  • @edwin918
    @edwin918 2 роки тому +2

    There is a typo in left outer join. Left join =inner join +any additional records in the left table. not the right table,

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

      Yes correct, I was pitching my head looking at the wrong results😬

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

    Excellent!

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

    on the last problem, line 11 (,) comma is missing between First_Name and salary ... which is why is not printing the salary instead it's used as an alias name of the First_Name...
    Thanks

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

    "Äny " would print the same employee twice, is not it? because the employee having the salary 2000 is lesser than any of the department 30 salary.

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

    How can I purchase full courses from your channel please ?

  • @AHMEDAZEEMPBIOUG-BATCH
    @AHMEDAZEEMPBIOUG-BATCH Рік тому

    at 1:21:46 why in rsult colum didnt mention first_name ,which was commended

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

    sir, cam we please get the presentation if possible?

  • @Raj-si5yz
    @Raj-si5yz 4 роки тому +1

    Thanks ,could you please tell what is the difference between MySQL ,SQL and Oracle.

    • @chaithrab9648
      @chaithrab9648 2 роки тому +1

      MySQL and oracle are the RDMS were in sql is a query language used to create and maintain RDMS.

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

    sir when I run this query
    SELECT E.employee_id, M.manager_id, E.first_name, M.first_name, E.job_id
    FROM employees E, employees M WHERE E.employee_id = M.manager_id;
    I got different record for the first_name field. I think the field record for E.first_name, and M.first_name should be the same so far both alias are referring to the single firs_name field in employees table
    Awaiting your response sir. Thanks

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

    Sir can you please provide more examples means like different examples so that we can practice

  • @NeerajKumar-n2c3u
    @NeerajKumar-n2c3u Рік тому

    sir can you please share link of Demo database hr link so we can practice on that

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

    Table A having float as data type and Table B having varchar as a data type can we join these table?

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

      hey did you get the answer, i am jsut learning from these videos n as per my understanding, data type should b shame for join function, if i m wrong, please correct me

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

    why do we bother using self join, we can anyways just use where clause and get the work done?

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

    someone :- Pavan how do you know joins soo clearly
    Me :- i follow my man SDET 😛

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

    Hi Sir, can i get these SQL queries with db test data?

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

    How to find 6th maximum salary ?

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

    Hi guys how to find the 3rd highest salary from employee table using joins.

  • @rahulsharma-kd4dp
    @rahulsharma-kd4dp Рік тому

    How to find 7th max highest salary in Employee table ?

  • @SameerAli-nm8xn
    @SameerAli-nm8xn 2 роки тому

    Every time, I am using this command I am getting an error like 1146, table doesn't exist. How to resolve it. Please help in resolving this issue

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

    Sir I have a doubt .. can u please clear it out?

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

    smjh hi nhi aya 21:29 mein k department id is ambiguous dono table mein departmnt id jb h r maine table name b defined krdiya h to chup chap se dono table se deprtmnt id lekr inner join krdeta na

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

    Sir where are the rest my sql videos ?

  • @muzammilkarajgi7507
    @muzammilkarajgi7507 4 роки тому

    How I get all SQL videos ? Plz share a link of all videos

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

    To be honest it wold have been so nice if you had shared all the datas you had. so many different datas and I have non of it

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

    sir please provoid hr data .link sir

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

    sry lekin srusly kahun toh mjhe smjh hi nhi aya join aisa confuse krdiya aone yahan pr aakr jb mera employees table mein deprtmnet id h r department table mein department id h toh inner join jb kiye toh simply ans miljana chhye na qki ur query was
    SELECT FIRSTNAME, SALARY, DEPARTMENT ID FROM EMPLOYEES U HAVE MENTION HERE FROM EMPLOYEES TOH PHR ISME APNE KAHA K DEPARTMENT.DEPARMENT ID EMPLOYEES TABLE K ANDR DEPARTMENT TABLE R USKI DEPRTMNT ID

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

    confusion from 1.02.55 someone please help me to understand this 'the whole salary is less Then 1400 ' but some salary is more then the salary of id_30

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

    It's good

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

    While executing same code in my system. It is showing error as Error Code: 1242. Subquery returns more than 1 row. Can any one tell reason ?

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

    where do i get hr database
    i need hr database sir

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

    When we use only join command

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

    can you plz provide the ppt

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

    38:12

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

    For 2nd max salary, select salary from employees order by salary desc limit 2,1;

  • @sarthak9103
    @sarthak9103 2 роки тому +1

    Display the employees who all earning the highest salary here can we use this
    SELECT * FROM EMPLOYEES WHERE SALARY=MAX(SALARY);

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

    Hi Sir can you please add me in the google group please