Difference Between SQL Views vs Materialized Views | Frequently Asked SQL Interview Question

Поделиться
HTML-код
  • Опубликовано: 27 дек 2024

Комментарии • 51

  • @ankitbansal6
    @ankitbansal6  6 месяцев назад +15

    Please do like the video 😊

    • @ishitasrivastava5923
      @ishitasrivastava5923 6 месяцев назад

      How can we schedule the refresh of the materialized view?

    • @n.dhanuskar2393
      @n.dhanuskar2393 6 месяцев назад

      Sir, can I get 10-15 min from your life I am confused for my career path I work as database developer from last 2y.next what to do I don't understand, Please can you guide

  • @Datapassenger_prashant
    @Datapassenger_prashant 6 месяцев назад +3

    Thank you so much Ankit sir for this wonderful video and clearing the concept of views in SQL..
    I'm pretty much sure I'll not forget it now..

  • @sivabonu3465
    @sivabonu3465 2 месяца назад +1

    Really awesome explanation.. Thanks alot sir

  • @subhajitdey6806
    @subhajitdey6806 6 месяцев назад

    man dope data contents are coming , need more of this , waiting...........

  • @anandmahajan943
    @anandmahajan943 6 месяцев назад

    Thanks Ankit for the video. Waiting for the Redshift tutorial.

  • @ramakumarguntamadugu1299
    @ramakumarguntamadugu1299 6 месяцев назад

    Good explanation.. keep posting such many interesting videos 👍

  • @harshitsalecha221
    @harshitsalecha221 6 месяцев назад

    Excellent explanation Ankit. Thanks a lot for providing such amazing knowledgeable videos.

  • @nipunshetty9640
    @nipunshetty9640 6 месяцев назад

    Man this is JUST MIRACLE❤

  • @puneetnaik8719
    @puneetnaik8719 6 месяцев назад

    Insightful

  • @simranpreetsingh3052
    @simranpreetsingh3052 6 месяцев назад

    Thanks for the great explanation!

  • @rajathratnakaran7893
    @rajathratnakaran7893 4 месяца назад

    Great explanation as always. I have a doubt on how is views different from stored procedure?

  • @Leo-qo5hk
    @Leo-qo5hk 6 месяцев назад

    Hello Sir great explanation please also make a videso on stored procedures and index as well

  • @mohammedvahid5099
    @mohammedvahid5099 6 месяцев назад

    Nice video bro it's good..❤

  • @Sachin_Sambare
    @Sachin_Sambare 3 месяца назад

    Superb explanation

  • @NareskanthM
    @NareskanthM 6 месяцев назад

    very good brother!

  • @rohansingh1584
    @rohansingh1584 6 месяцев назад

    Hello please also make the playlist on case study using SQL It will help everyone and me too
    It will be great if u explain this 😊

  • @srinivasanselvam1490
    @srinivasanselvam1490 6 месяцев назад

    Thank you so much 🙏 ankit😊 You explained very clearly

  • @pavanmadamset
    @pavanmadamset 6 месяцев назад

    Thank You Very Much Sir

  • @theraizadatalks14
    @theraizadatalks14 5 месяцев назад

    This is one of the common interview question.

  • @CodeElephant-codeMadeEasy
    @CodeElephant-codeMadeEasy 6 месяцев назад

    great explanation

  • @rohithborra9435
    @rohithborra9435 6 месяцев назад

    Thankyou sir!

  • @GSrinivasulu-s5d
    @GSrinivasulu-s5d 4 месяца назад

    I got full clarity b/w Normal views and Materialized views just in one 13 min video

  • @varunas9784
    @varunas9784 6 месяцев назад +1

    Great demo as always.
    Could you please make another video explaining the backend things of how altering a view (performing update to views) changes the contents of the base table as well
    TIA!

  • @mahesh97413
    @mahesh97413 6 месяцев назад

    Bro, can you please make some videos on SQL stored procedure. I couldn't find tutorials anywhere. If you explain it, we can easily learn it. I am fond of your teaching.

    • @theraizadatalks14
      @theraizadatalks14 5 месяцев назад

      For those, check out "Kudvenkat SQL Server Playlist", you'll find. I hope, Ankit Bansal created videos on Stored Procedure as well in future.

  • @venkkatmerla4389
    @venkkatmerla4389 4 месяца назад

    Hi Ankit
    Vedio is good but I have some doubts in it.
    As a storage point it is clear.
    Data freshness also clear.
    Performance point i have some doubt it mean view and materialised will you the same plan hash value or it is different for view since it is taking data from base team , there might be a chance that base table search path might change,can you please help me with your input on this

    • @venkkatmerla4389
      @venkkatmerla4389 4 месяца назад

      Adding to that point if mview has a dynamic refresh obviously it will degrade the db performance please correct me if I am wrong

  • @makarsh29
    @makarsh29 3 месяца назад

    how updateable views are diffrent ?

  • @Pyari_Guddiya
    @Pyari_Guddiya 6 месяцев назад +2

    What would be the difference between Views and CTE then ?

    • @ishanshubham8355
      @ishanshubham8355 6 месяцев назад +2

      1.Views are database objects while cte is not a database object rather it is temporary named result set generated on query for which it is defined.
      2.Views are stored on disk while cte are stored on memory(Ram) which is a temporary storage.
      3.Views can be referenced from anywhere within the database in which it is created while cte can be referenced only within the boundary of the statement for which it is defined.
      4.Views can't be recursive while cte can be recursive.

    • @varunas9784
      @varunas9784 6 месяцев назад +1

      From a query execution standpoint:
      1. Views are virtual and/or actual tables u can update or alter whereas CTE are temporary result you can store while executing a query
      2. Views can be called independently whereas, CTEs cannot be called independently (they are dependent on your full query execution)
      3. CTEs results are gone once your SQL session is closed whereas views results remain as is

  • @mohammedvahid5099
    @mohammedvahid5099 6 месяцев назад +3

    Wht is difference between snowflake materialized views and SQL materialized views bro can u explain please

    • @ankitbansal6
      @ankitbansal6  6 месяцев назад +1

      The concept is the same. However Snowflake’s materialized views are automatically refreshed whenever the base tables change, without requiring explicit commands from the user.

  • @khyatigaur7368
    @khyatigaur7368 18 дней назад

    view and cte difference?

  • @HayaFayaz
    @HayaFayaz 6 месяцев назад

    Can somebody upload the "Returns" table inset query!

  • @sarvesh714
    @sarvesh714 6 месяцев назад

    what is the diff between a View and a CTE?

  • @muruganselva7431
    @muruganselva7431 6 месяцев назад

    Hi Ankit, Are you doing videos for Snowflake

  • @ashanair1602
    @ashanair1602 4 месяца назад

    I have not understood from your example why materialised views are faster. The results are pre-computed in Views too,, both retrieve what is in the underlying table.

    • @ankitbansal6
      @ankitbansal6  4 месяца назад

      In normal views they are not pre computed

  • @mrpam4672
    @mrpam4672 6 месяцев назад

    What about materialised views in Sql server

    • @simranpreetsingh3052
      @simranpreetsingh3052 6 месяцев назад

      It's unsupported in SQL server. In SSMS there are index views only.

  • @captainsaver69
    @captainsaver69 6 месяцев назад

    Thank you sir❤