SQL Internals | Indexes in SQL | Order of Execution in SQL | Advanced SQL | SQL Scenario based

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.ย. 2024
  • 𝐖𝐚𝐧𝐭 𝐭𝐨 𝐌𝐚𝐬𝐭𝐞𝐫 𝐒𝐐𝐋? 𝐋𝐞𝐚𝐫𝐧 𝐒𝐐𝐋 𝐭𝐡𝐞 𝐫𝐢𝐠𝐡𝐭 𝐰𝐚𝐲 𝐭𝐡𝐫𝐨𝐮𝐠𝐡 𝐭𝐡𝐞 𝐦𝐨𝐬𝐭 𝐬𝐨𝐮𝐠𝐡𝐭 𝐚𝐟𝐭𝐞𝐫 𝐜𝐨𝐮𝐫𝐬𝐞 - 𝐒𝐐𝐋 𝐂𝐡𝐚𝐦𝐩𝐢𝐨𝐧𝐬 𝐏𝐫𝐨𝐠𝐫𝐚𝐦 𝐛𝐲 𝐒𝐮𝐦𝐢𝐭 𝐒𝐢𝐫!
    "𝐀 8 𝐰𝐞𝐞𝐤 𝐏𝐫𝐨𝐠𝐫𝐚𝐦 𝐝𝐞𝐬𝐢𝐠𝐧𝐞𝐝 𝐭𝐨 𝐡𝐞𝐥𝐩 𝐲𝐨𝐮 𝐜𝐫𝐚𝐜𝐤 𝐭𝐡𝐞 𝐢𝐧𝐭𝐞𝐫𝐯𝐢𝐞𝐰𝐬 𝐨𝐟 𝐭𝐨𝐩 𝐩𝐫𝐨𝐝𝐮𝐜𝐭 𝐛𝐚𝐬𝐞𝐝 𝐜𝐨𝐦𝐩𝐚𝐧𝐢𝐞𝐬 𝐛𝐲 𝐝𝐞𝐯𝐞𝐥𝐨𝐩𝐢𝐧𝐠 𝐚 𝐭𝐡𝐨𝐮𝐠𝐡𝐭 𝐩𝐫𝐨𝐜𝐞𝐬𝐬 𝐚𝐧𝐝 𝐚𝐧 𝐚𝐩𝐩𝐫𝐨𝐚𝐜𝐡 𝐭𝐨 𝐬𝐨𝐥𝐯𝐞 𝐚𝐧 𝐮𝐧𝐬𝐞𝐞𝐧 𝐏𝐫𝐨𝐛𝐥𝐞𝐦."
    𝐇𝐞𝐫𝐞 𝐢𝐬 𝐡𝐨𝐰 𝐲𝐨𝐮 𝐜𝐚𝐧 𝐫𝐞𝐠𝐢𝐬𝐭𝐞𝐫 𝐟𝐨𝐫 𝐭𝐡𝐞 𝐏𝐫𝐨𝐠𝐫𝐚𝐦 -
    𝐑𝐞𝐠𝐢𝐬𝐭𝐫𝐚𝐭𝐢𝐨𝐧 𝐋𝐢𝐧𝐤 (𝐂𝐨𝐮𝐫𝐬𝐞 𝐀𝐜𝐜𝐞𝐬𝐬 𝐟𝐫𝐨𝐦 𝐈𝐧𝐝𝐢𝐚) : rzp.io/l/SQLINR
    𝐑𝐞𝐠𝐢𝐬𝐭𝐫𝐚𝐭𝐢𝐨𝐧 𝐋𝐢𝐧𝐤 (𝐂𝐨𝐮𝐫𝐬𝐞 𝐀𝐜𝐜𝐞𝐬𝐬 𝐟𝐫𝐨𝐦 𝐨𝐮𝐭𝐬𝐢𝐝𝐞 𝐈𝐧𝐝𝐢𝐚) : rzp.io/l/SQLUSD
    𝐖𝐚𝐧𝐭 𝐭𝐨 𝐥𝐞𝐚𝐫𝐧 𝐁𝐢𝐠 𝐃𝐚𝐭𝐚 𝐛𝐲 𝐒𝐮𝐦𝐢𝐭 𝐒𝐢𝐫?
    𝐜𝐡𝐞𝐜𝐤𝐨𝐮𝐭 𝐭𝐡𝐞 𝐛𝐢𝐠 𝐝𝐚𝐭𝐚 𝐜𝐨𝐮𝐫𝐬𝐞 𝐝𝐞𝐭𝐚𝐢𝐥𝐬
    𝐖𝐞𝐛𝐬𝐢𝐭𝐞 : trendytech.in/...
    I have trained over 20,000+ professionals in the field of Data Engineering in the last 5 years.
    SQL Internals | Indexes in SQL | Order of Execution in SQL | Advanced SQL | SQL Scenario based
    In this session I have talked about
    1. clustered index vs non clustered index
    2. scan vs seek
    3. how to read an execution plan in sql
    4. various operators in the execution plan in sql
    5. order of execution in sql
    6. how sql server do optimisation internally
    J𝗼𝗶𝗻 𝗺𝗲 𝗼𝗻 𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:🔥
    🔅Sumit LinkedIn - / bigdatabysumit
    🔅Sumit Instagram - / bigdatabysumit
    If you haven't subscribed to the channel then please do subscribe for more insightful content
    #SQLinternals #AdvancedSQL #OrderOfExecution #bigdata #dataengineering

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

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

    Checkout the Big Data course details here: trendytech.in/?referrer=youtube_sqladv2

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

      link is not working says proxy or vpn detected

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

      do you have resources on SQL optimization and in general Big data optimization techniques, for interview preparation.?

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

    🔰This is the best series of learning SQL on TH-cam I've ever seen.
    The way you teach here is quite similar to your big data program which is really really commendable.
    As you've mentioned, before going into a big data program, first we need to learn SQL, at least the basics of it.
    And I can say, this series of SQL is a perfect recipe to have a good understanding of a big data program.
    You're really putting your hard work into it.
    Thank you very much and please keep bringing this valuable content likewise. 🙏

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

      thank you very much Sandip.. will keep adding more interesting content.

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

    have been using SQL queries for so many years, however not knowing or caring much about what is happening behind the scenes, now this video is making knowing the internals fun & interesting, thank you very much sir :)

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

    Sumit Sir Thank you for this video. I am using SQL from 2-3 years. I can write hard and complex queries, but the things mentioned in this video are so in depth that i didnt know anything such kind exists. Overall I can say optimizations are your thing.

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

    Really very helpful @Trendytech Insights!! 59:26, does it mean that engine has kind of stats on the data already where it knows about the distribution of orders in certain ranges. (e.g. count >10 , count>100, etc.) in order to decide the execution order of operation??? 🤔🤔🤔
    This one is going to help lot of data geeks to get the internals sorted! 😃 Thank you so much!!!

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

    I never understood why I can't use the alias of aggregates in the where / having clause. To avoid the error I used sub queries/ ctes so that I can use alias in where and having clauses. With this video, I have finally understood why alias cannot be used in the where and having clause but can be used in the order by clause.
    Thank you for the great content.

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

      thank you very much Arslan :)

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

    Sir, This video is much more helpful compared to all others that are available in TH-cam but you mentioned you will do the series of videos for further detailed explanation. Can please release those asap so that it will be helpful for many others like me.

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

    By far the best Sql series available

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

    @Sumit Sir Thanks for the video. I have just one doubt in this when we talk about composite clustered index , that we have multiple column in that E.g. (Order_id,cust_id). So firstly it will sort on basis of order_id and if there is any tie then on cust_id. But how will there be clash as this is primary key and we cannot have duplicate value in that. So what is the actual benefit of composite clustered index

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

    This is the best explanation so far than other tutorial ever...

  • @SurajKumar-lt9us
    @SurajKumar-lt9us ปีที่แล้ว

    Sir How to practice SQL, After watching your tutorials. I mean there is no dataset in any SQL tutorial. Please suggest

  • @AmitSingh-ut4wt
    @AmitSingh-ut4wt 2 ปีที่แล้ว

    Thank you sumit sir always faced problem in understanding the order of execution. Your explanation has cleared out everything.

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

    Hi sir
    I have been watching your video, as a beginner I would say it's a great explanation.
    One request from my end, pls make a video on the difference among the views, stored procedures and functions along with the triggers in detail in SQL.
    Thanks.

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

    Thank you so much sumit sir for teaching sql so clearly. Can you please make a vedio on window functions sir

  • @user-to4hw4pu5w
    @user-to4hw4pu5w 10 หลายเดือนก่อน

    could you please make video series for pl/sql developer role sir

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

    Sumit Sir, Thank you so much for this awesome video, I request you to please tell us how can we install sql in VS code, thank you .

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

    Sumit, this is great. I followed all your sql sessions and look forward for many more. I have been working on sql for 6 years now . This is amazing playlist found so far. only one suggestion I have is when you write a sql query , can you please write in multiple lines instead of one line ( Eg in 27 min 19 sec of this video). I think that is recommended sql format. Thanks.

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

      thats a very good suggestion.. will take care of this going forward.

    • @krishnakumarkumar5710
      @krishnakumarkumar5710 8 หลายเดือนก่อน

      Kudos to Bigdata LORD Sumeet

  • @sandeepkumar-ol5lg
    @sandeepkumar-ol5lg ปีที่แล้ว

    As you mentioned you’ll do this in series of videos , can you comment the following videos, also you mentioned you did a video on optimising queries please provide that link as well

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

    Wow! Amazing Video.. you have made me very clear about it Thank you. Really Amazing

  • @AmitSingh-ut4wt
    @AmitSingh-ut4wt 2 ปีที่แล้ว

    I guess for the top-N search it might have used max-heap data structure whose complexity will be O(total_no_records*log(N)) which is faster than sorting O(total_no_records*log(total_no_records)).

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

    Looking forward for more videos on SQL.

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

    Thank you for these sessions. You explain the concepts so well

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

    Thank you for indepth explanation sir. Can you please make a video on date functions in SQL , it is quite confusing to use them in queries.please consider this request sir .Thank you sir

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

      surely will try to make a video on date

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

    Amazing it is...never did i realize the internals of database is so intresting

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

      I am glad that you liked the video :)

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

    This is really good ! Please continue on reducing the cost and optimizing. It always depends on data and other variable but a baseline would be great🙂

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

      th-cam.com/play/PLDYqU5RH_aX1VSVvjdla9TOKf939UhIDB.html

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

    This is really powerful session

  • @NasimaKhatun-jb7qo
    @NasimaKhatun-jb7qo 2 ปีที่แล้ว

    Filter befor join or after join.. in case of concat and othe scenario.. what is better??

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

    Thanks for the beautiful in-depth explanation, this makes things simple

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

    God bless your great efforts in this channel.
    I have a simple question to ask as a newbie sql learner.
    Could i manage to channel or extract all sql data generated from an accounting program (based on sql) to our new sql server.
    The reason that we are bounded with the graphical interface of this accounting software as we cant
    come up with any solutions regarding analytics and automation, unless we can tailor and rearrange this sql database based to our specific needs.
    Thanks for helping me

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

    PERFECT 11/10
    Thank You !

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

    Thanks a lot sir. It was very useful.

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

    Great explanation sir

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

    Finally I understood the order of execution😅. Awesome content.

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

    When the count* and select * query is executed in the beginning the number of rows keeps changing in the bar at the bottom near the console box.. what is that and why did that happen?

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

    Very well explained. Good job done. Keep it up.

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

    Sweet. Thank you!

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

    Thank you Sumit sir for the wonderful explanation... Can you please videos on more topics like stored func/ procs, Triggers, Pivot.

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

    Amazing sir thank you!

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

    In-depth knowledge gained

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

    is machine learning required to join your big data course ? or ML is even required to become big data developer

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

    Sir, please upload the data set for the practice query

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

    Hi Summit , correct me if I am wrong. You mentioned for non-clustered index there will be a separate table. But what I believe is that for whatever indexing it is,a separate table will get created. Also why not Primary Index is getting created when we use primary key?

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

      for clustered index there is no external thing thats created. when we have a primary key its clustered index and the storage of data in actual table happens in ascending order.

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

      @@sumitmittal07 Okay thank you for clearing my doubt.

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

      @@sumitmittal07 Okay thank you for clearing my doubt.

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

    This is a very nice demo n session. Could you share your vscode setup that was used for data browsing here? Thanks a lot in advance

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

      What add on or extension in VS Code was used here for the mySQL setup? Please share.

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

    great

  • @NasimaKhatun-jb7qo
    @NasimaKhatun-jb7qo 2 ปีที่แล้ว

    What is binary search

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

    Can anyone tell me in which video Sumit sir shared how to install MySQL please?

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

      You will get a lot of videos on Mysql installation.
      The concepts he is dealing with are really important and not that well explained in other instructors' videos.
      Learn and enjoy 👍🏻

  • @AdityaSharma-qx1yz
    @AdityaSharma-qx1yz 2 ปีที่แล้ว

    From where we get this huge dataset??

  • @AnandSharma-kz2bs
    @AnandSharma-kz2bs 2 ปีที่แล้ว

    Which env or IDE is used here for querying

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

      I think it is vs code

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

      Azure Data Studio

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

      th-cam.com/play/PLDYqU5RH_aX1VSVvjdla9TOKf939UhIDB.html

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

    Sir this video concept is not pretty clear

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

    if someone need notes, here they are
    drive.google.com/file/d/1J8ULa8yGB90ymbtAp2ysG0gbfOFVyAjj/view?usp=share_link