SQL Tutorial 9: SQL Joins and Sub Queries

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ธ.ค. 2024

ความคิดเห็น • 148

  • @shamikaredkar837
    @shamikaredkar837 3 ปีที่แล้ว +48

    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 ปีที่แล้ว +12

    Best study channel in the whole TH-cam study channels

  • @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.

  • @mekidtube4404
    @mekidtube4404 4 ปีที่แล้ว +4

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

  • @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.

  • @lakshmyjayalakshmy2326
    @lakshmyjayalakshmy2326 2 ปีที่แล้ว +10

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

  • @r.rajalakshmi369
    @r.rajalakshmi369 8 หลายเดือนก่อน +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  8 หลายเดือนก่อน +1

      You are most welcome

  • @atlanticwriters5908
    @atlanticwriters5908 ปีที่แล้ว +4

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

    • @alexiojunior7867
      @alexiojunior7867 4 หลายเดือนก่อน

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

  • @h-fj2pb
    @h-fj2pb 2 หลายเดือนก่อน

    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!

  • @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.

  • @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....

  • @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.🙏🙏🙏

  • @alexiojunior7867
    @alexiojunior7867 4 หลายเดือนก่อน +1

    wow excellent content very easy to follow

    • @sdetpavan
      @sdetpavan  4 หลายเดือนก่อน

      Glad you liked it

  • @DilshanSandeepa-wh9dv
    @DilshanSandeepa-wh9dv 10 หลายเดือนก่อน +1

    Sir your teaching is very good.I appreciate it ❤

    • @sdetpavan
      @sdetpavan  10 หลายเดือนก่อน

      It's my pleasure

  • @deadflower2289
    @deadflower2289 2 ปีที่แล้ว +4

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

  • @tejasree8246
    @tejasree8246 ปีที่แล้ว +2

    Wow super explanation sir

    • @sdetpavan
      @sdetpavan  ปีที่แล้ว

      Thank you so much

  • @bristiadhikary7441
    @bristiadhikary7441 3 ปีที่แล้ว +2

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

    • @ganeshghule1223
      @ganeshghule1223 2 ปีที่แล้ว

      R u become software test engineer

  • @bhushanchaudhari8522
    @bhushanchaudhari8522 3 ปีที่แล้ว +3

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

  • @subhajitchakraborty8724
    @subhajitchakraborty8724 2 ปีที่แล้ว +2

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

  • @user-om2jr5ut9s
    @user-om2jr5ut9s 2 ปีที่แล้ว +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.

  • @PinkHouseIdeas
    @PinkHouseIdeas ปีที่แล้ว +2

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

  • @markandeypandey3227
    @markandeypandey3227 6 หลายเดือนก่อน +1

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

    • @sdetpavan
      @sdetpavan  6 หลายเดือนก่อน

      Welcome

  • @gayathris4422
    @gayathris4422 3 ปีที่แล้ว +4

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

  • @srikargudla1517
    @srikargudla1517 ปีที่แล้ว +1

    Thank you very much sir for ur wonderful explanation

    • @sdetpavan
      @sdetpavan  ปีที่แล้ว

      You are most welcome

  • @kittunayak4251
    @kittunayak4251 ปีที่แล้ว

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

  • @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.

    • @sdetpavan
      @sdetpavan  2 ปีที่แล้ว

      most welcome

  • @amritsinghania2722
    @amritsinghania2722 2 ปีที่แล้ว +1

    I am just beginner and it was really helpful

    • @sdetpavan
      @sdetpavan  2 ปีที่แล้ว

      Glad it was helpful!

  • @Craze_Lifter
    @Craze_Lifter ปีที่แล้ว +1

    Excellent lecture

  • @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.😀

  • @tusharsonwane8468
    @tusharsonwane8468 2 ปีที่แล้ว +1

    Superb explanation Thank you so much sir👍

  • @kavya-g5q
    @kavya-g5q 3 ปีที่แล้ว +1

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

  • @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

  • @pavanakepati8320
    @pavanakepati8320 2 ปีที่แล้ว +2

    Excellent lectures... 👏

  • @mohittripathi1029
    @mohittripathi1029 2 ปีที่แล้ว +1

    Sir aapko bahut bahut pranam

  • @soumya8926
    @soumya8926 2 ปีที่แล้ว +1

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

  • @tejasree8246
    @tejasree8246 ปีที่แล้ว +1

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

  • @atulshinde5343
    @atulshinde5343 6 หลายเดือนก่อน

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

  • @kanak7725
    @kanak7725 2 ปีที่แล้ว +1

    it's very helpful video to fresher.

  • @meenaselvam8282
    @meenaselvam8282 3 ปีที่แล้ว +2

    Thank you sir . It was very helpful sir.

    • @sdetpavan
      @sdetpavan  3 ปีที่แล้ว

      Most welcome

  • @javashashavali
    @javashashavali ปีที่แล้ว +1

    Thanks Pavan sir 21:00 sec

  • @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 4 ปีที่แล้ว

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

  • @sathya1716
    @sathya1716 4 หลายเดือนก่อน

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

  • @manthenianurag9721
    @manthenianurag9721 2 ปีที่แล้ว +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 ??

  • @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

  • @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

    • @sdetpavan
      @sdetpavan  ปีที่แล้ว +1

      www.pavantestingtools.com/p/sql-tutorials.html

    • @mathematicson
      @mathematicson ปีที่แล้ว

      Tq so much sir

  • @shankarfutane191
    @shankarfutane191 ปีที่แล้ว

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

    • @sdetpavan
      @sdetpavan  ปีที่แล้ว

      You are most welcome

  • @ninuritu9312
    @ninuritu9312 5 ปีที่แล้ว +2

    Thank you for the detailed explanation Sir

  • @alshadsk1412
    @alshadsk1412 2 ปีที่แล้ว

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

  • @saranyachandrabos3541
    @saranyachandrabos3541 3 ปีที่แล้ว +2

    Thank you so much

    • @sdetpavan
      @sdetpavan  2 ปีที่แล้ว

      You're most welcome

  • @ganeshghule1223
    @ganeshghule1223 2 ปีที่แล้ว

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

  • @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

  • @PradipYogi59
    @PradipYogi59 5 ปีที่แล้ว +1

    very detailed explanation thank you

  • @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

  • @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

  • @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.

  • @yuviarts8475
    @yuviarts8475 4 ปีที่แล้ว +1

    thanks for the explanation video it's really useful

    • @sdetpavan
      @sdetpavan  2 ปีที่แล้ว

      You are welcome

  • @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

  • @MultiBirthdayWishes
    @MultiBirthdayWishes 2 ปีที่แล้ว

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

  • @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😬

  • @priyankaavate6650
    @priyankaavate6650 2 ปีที่แล้ว

    sir, cam we please get the presentation if possible?

  • @AHMEDAZEEMPBIOUG-BATCH
    @AHMEDAZEEMPBIOUG-BATCH ปีที่แล้ว

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

  • @simransingla9397
    @simransingla9397 4 ปีที่แล้ว

    Awesome explanation😄😃

  • @kiranharijan2809
    @kiranharijan2809 2 ปีที่แล้ว

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

  • @ahmedkhalil5008
    @ahmedkhalil5008 2 ปีที่แล้ว

    How can I purchase full courses from your channel please ?

  • @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

  • @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

  • @muhammadjunaidmajeed1211
    @muhammadjunaidmajeed1211 3 ปีที่แล้ว

    Excellent!

    • @sdetpavan
      @sdetpavan  2 ปีที่แล้ว

      Many thanks!

  • @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

  • @AmitKumar-ey2cf
    @AmitKumar-ey2cf 2 หลายเดือนก่อน

    Sir my humble request please increase quality(360p)

  • @mujaheedadil143
    @mujaheedadil143 22 วันที่ผ่านมา

    5 years are completed still sir are you not provide the any link of practice purpose of HR Database
    Or you can you provide the link+ some amount of which is use full for both us Thank you.

  • @deepparmar8
    @deepparmar8 3 ปีที่แล้ว

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

  • @prasaddevathi09
    @prasaddevathi09 2 ปีที่แล้ว

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

  • @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.

  • @powerupgamingyt
    @powerupgamingyt ปีที่แล้ว

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

  • @vishnuprakash1016
    @vishnuprakash1016 3 ปีที่แล้ว

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

  • @muzammilkarajgi7507
    @muzammilkarajgi7507 4 ปีที่แล้ว

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

  • @Ammugaja61
    @Ammugaja61 ปีที่แล้ว

    How to find 6th maximum salary ?

  • @Bangloreblogs
    @Bangloreblogs 2 ปีที่แล้ว

    Sir where are the rest my sql videos ?

  • @rahulsharma-kd4dp
    @rahulsharma-kd4dp ปีที่แล้ว

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

  • @akshaynawale7538
    @akshaynawale7538 3 ปีที่แล้ว

    where do i get hr database
    i need hr database sir

  • @NeerajKumar-n2c3u
    @NeerajKumar-n2c3u ปีที่แล้ว

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

  • @badreswaribhadreswari7467
    @badreswaribhadreswari7467 ปีที่แล้ว

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

  • @gouthamimacharla2616
    @gouthamimacharla2616 3 ปีที่แล้ว

    It's good

  • @pavanpavan2151
    @pavanpavan2151 3 ปีที่แล้ว

    When we use only join command

  • @basanagoudabiradar8669
    @basanagoudabiradar8669 6 หลายเดือนก่อน

    sir please provoid hr data .link sir

  • @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

  • @ashishmunde3935
    @ashishmunde3935 2 ปีที่แล้ว

    can you plz provide the ppt

  • @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

  • @kikikiki4588
    @kikikiki4588 2 ปีที่แล้ว

    38:12

  • @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

  • @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 ?

  • @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

  • @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