Introduction to SQL/2

Поділитися
Вставка
  • Опубліковано 19 вер 2024

КОМЕНТАРІ • 31

  • @kang2753
    @kang2753 6 років тому +17

    Awesome lectures. Got better understanding of Databases from these lectures. Better to practice side by side on w3schools, where you can create your own database.

  • @RahulKumar-de2rw
    @RahulKumar-de2rw 5 років тому +1

    31:24 awesome explanation of group by and having 🔥✨

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

    Awesome teaching.Very good explanation sir

  • @user-nz1bj1mw9b
    @user-nz1bj1mw9b 14 днів тому +1

    An average student cannot understand these lectures . 😢

  • @tejeshkonchada3971
    @tejeshkonchada3971 4 роки тому +6

    Answer for all supervisors(direct and indirect) of "Bob" please.

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

      select D.supervisor as supervisor
      from emp-super A,emp-super B,emp-super C,emp-super D
      where A.person="Bob" and ((A.person=B.person or A.supervisor=B.person) and (B.person=C.person or B.supervisor=C.person) and (C.person=D.person or C.supervisor=D.person))
      i have just started this course.
      idk if there is some command for iteration in SQL
      but as there is no such facility in relational algebra i have used such long methods
      also idk if the bracket syntax is correct but it should be so

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

      @@mahekshamsukha5212 what if we don't know the size of the table. then what will the query be?

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

      @@aayushbhatnagar1999 i think we can import it to python and perform pandas to index you will get number and use for loop

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

      second answer of the exercise...pls...

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

      @@ankitkumarmajhi4020
      select B.supervisor
      from emp-super A, emp-super B
      where A.supervisor=B.person and A.person='Bob'

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

    Arithmetic expression are used in select clause & Comparison based expression are used in where clause

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

    Watching this at 2x speed

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

      Hope UA-cam had 5x too😢

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

      @@muhammadmkm3093 use js to manipulate the speed
      that is what im doinggg👀

  • @PankajSingh-mm3br
    @PankajSingh-mm3br 5 років тому

    best video

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

    Can anyone please explain projection which is at 13:12. I can't get the concept.

  • @siddharthprasad8960
    @siddharthprasad8960 6 років тому

    i like this video

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

    Where can we find this ppt/pdf??

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

    Can any one can write queries to the assignment (supervisor table)

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

      * supervisor of supervisor of bob:
      select distinct e.supervisor from emp_super e, emp_super s
      where s.supervisor=e.person and s.person = 'bob'
      *all supervisors of bob
      select distinct e.supervisor from emp_super e, emp_super s
      where s.person = 'bob'

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

      @@vii2sharma this is not a generic solution. U just made use of the fact that all entries in supervisors column are ans.
      for that simply
      select distinct supervisors
      from emp_super
      will work.

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

    why was that erronous query at 28:38

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

      Because the select clause contained a non-aggregated attribute ID which was not present in group by clause. For query to be correct all the non-aggregated attributes present in the select clause must be a subset of the attributes present in the group by clause...

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

      @@jamespottex5197 can you please explain elaborately

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

    15:00

  • @geetusharma3923
    @geetusharma3923 6 років тому

    at 21:38 instance ,
    (not unknown)= unknown seems incorrect .
    wont it be (not unknown )= known ??

    • @kesavsivakumar4869
      @kesavsivakumar4869 5 років тому

      The result will be unknown since the u r doing NOT operation on an unknown value

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

    6:00

  • @suryasikharej908
    @suryasikharej908 6 років тому

    I cannot understand the null values concept.

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

    Watch this at 1.5x , Thank me later