SQL (Basic) Certification | Hackerrank Certifications

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 พ.ค. 2021
  • #C #HelloWorld #CS #C++ #Python #Programming #Unix #Linux #Hackerrank #CLanguage #CProgramming #Cbasics #printf #scanf #Certification #SQL #Mysql #MongoDB #include #stdio.h #vk #program #problem
    Thanks for watching us ...
    Dev19🖤
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    select roll_number,name from student_information s inner join faculty_information f on s.advisor=f.employee_id where( f.gender='M' and f.salary>15000) or (f.gender='F' and f.salary>20000)

    • @renielbencepo2300
      @renielbencepo2300 5 หลายเดือนก่อน

      I did this but without the alias and it returns error I don't know why

    • @mohamedazharudeen405
      @mohamedazharudeen405 5 หลายเดือนก่อน

      ​@@renielbencepo2300might be due to columns ambiguousness

  • @DeepakV-jf3nb
    @DeepakV-jf3nb 11 หลายเดือนก่อน

    Actually the tables shld b joined based on common column. So they have mentioned for students table primary key is roll number but why hav they joined using advisor?

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

    Nice bro :)

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

    Bro I got an doubt Why are you using s.rollno and f.employee name.what does it mean ..?

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

      initilize the table where the column is selected

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

    hi may I know why you assign s.advisor = f.employee_id? I am not clear about it.

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

      just to join two table

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

      I AM BEGGINER ON SQL PLEASE LET ME KNOW WHY WE USE S. F.? WHAT IS THE USE OF IT. ANY REFRENCE FROM WHICH I CAN UNDERSTAND

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

      @@mohitbokade2691 I AM BEGGINER ON SQL PLEASE LET ME KNOW WHY WE USE S. F.? WHAT IS THE USE OF IT. ANY REFRENCE FROM WHICH I CAN UNDERSTAND

    • @inderpanda
      @inderpanda 11 หลายเดือนก่อน

      @@kamaralam4798 It is used for renaming it as a shortcut
      e.g - Students_information AS s

  • @RiRi-jh5pf
    @RiRi-jh5pf ปีที่แล้ว

    is there an issue with my query:
    select roll_number, name from student_information where advisor in
    (select employee_ID from employee_information where gender='M' and salary > 15000
    union
    select employee_ID from employee_information where gender='F' and salary > 20000)

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

    All of us having same questions or different

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

    Why we are not using Inner Join condition?

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

      There are two ways to write joins
      1. using a theta format ( used in this video ) and
      2. using join format

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

      @@dipeshmandanka I AM BEGGINER ON SQL PLEASE LET ME KNOW WHY WE USE S. F.? WHAT IS THE USE OF IT. ANY REFRENCE FROM WHICH I CAN UNDERSTAND

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

      @@kamaralam4798 is known as Aliase in SQL to provide the temporary name

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

    Is any one gave this test and those got the same question

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

      i got 1 question student one the same... but 2nd question was combining name and country mobile code numbers.

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

    Is there any charges for this exam??

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

    my dear - learn first properly and then make a video. sincere advise

    • @gdtotshared-jk4uo
      @gdtotshared-jk4uo 3 หลายเดือนก่อน +2

      Just because he didn't solved them using the method you know doesn't mean he hasn't learnt.
      Why didn't I found the videos on your channel since you've "learnt" so much?