Materialized View in SQL | Faster SQL Queries using Materialized Views

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

КОМЕНТАРІ • 213

  • @falconmack
    @falconmack 7 місяців тому

    Extremely helpful video, I didn't know nothing about views, and now I feel like an expert. THANK YOU SO MUCH

  • @gangajairaman8742
    @gangajairaman8742 2 роки тому +6

    Hi Tfq, your explanation about the concept is very good. Could you please upload the separate video for Oracle materialized view and view? Thanks

    • @techTFQ
      @techTFQ  2 роки тому

      Thank you and noted bro

  • @naguleshwarg2320
    @naguleshwarg2320 2 роки тому +42

    Hello TFQ.. Really loved the way you teach SQL concepts. It would be great if you could make videos on Trigger, Cursor, Function, Index, Record, Exception Handling, Package and Partitions. It would be of immense help for every aspiring data scientists.

  • @smrutimohanty8560
    @smrutimohanty8560 6 місяців тому

    very nice. Even though I am a PM and do not work technically on SQL , I could understand the concepts. Keep up the good work

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

    The way you have explained it is amazing and thanks for this incredible content.

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

    Short, simple & easy to understand. Thanks Taufiq!

  • @basil6909
    @basil6909 Рік тому +1

    In my work area we refresh the materialized view twice a day. One in the morning and one in the evening.

  • @pavanmunagasetty6930
    @pavanmunagasetty6930 Рік тому +1

    Pls do the video on materialized view covering oracle

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

    This was a great video to watch, thank you! Please do make a video on how Oracle materialized views have more functionalities than Postgres :)

    • @techTFQ
      @techTFQ  2 роки тому

      Your welcome and sure wil do

  • @hammadyasir2174
    @hammadyasir2174 3 місяці тому

    Excellent Sir.I really appreciate your effort

  • @umidkurbanov5495
    @umidkurbanov5495 8 місяців тому

    Bro, you're awesome. Very clearly explained

  • @fathimafarahna2633
    @fathimafarahna2633 2 роки тому +3

    👌🏻👌🏻👌🏻👌🏻👌🏻on point

    • @techTFQ
      @techTFQ  2 роки тому

      Thank you 🙏🏼

  • @pratikhonrao733
    @pratikhonrao733 7 місяців тому

    Hello TFQ - what's the difference between Materialized Views and TEMP tables?

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

    Hello , your videos are really helpful, please do a video on MS SQL materialized views

  • @mahadevabamanalli5769
    @mahadevabamanalli5769 Рік тому +1

    Plz make a video on Oracle materialized view

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

    Thanks for making video.....
    Please make video for Oracle on both the views in detail

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

    Sir, Kindly make a video on Materialized views in Oracle also.! Thanks for explanation!

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

      Sure will do it, thank you

  • @SM-km4gs
    @SM-km4gs 2 роки тому +1

    Thanks for the explanation...please make video on oracle as well.

    • @techTFQ
      @techTFQ  2 роки тому

      your welcome and sure will do

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

    Explained Very well,Thanks

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

    Yes, Please cover materialized view in Oracle.

  • @hasanmougharbel8030
    @hasanmougharbel8030 2 роки тому

    Hey dear, god bless your efforts in this channel.
    I have a general enquiry as a new sql learner.
    How could i create a pipeline to extract and load data from existing accounting program into our SQL server instances.
    How can i know if the export mechanism in the software permits me to undertake this extraction process, and how can i know if an application have an api?
    Thanks for taking care of my enquires.
    Looking forward to gain more knowledge from you.

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

    Can you make a video on registered servers and stored procedures creation and execution

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

    please make a video of materialized view for Oracle. thank you.

  • @aniketjagdale7765
    @aniketjagdale7765 8 місяців тому

    Hi pls create a materialized view video on Oracle database as well

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

    Just Wow.. Thank you.

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

    Great explanation. When are you going to conduct live sessions again?

  • @victor.ruto.7919
    @victor.ruto.7919 2 роки тому

    Thank you, can you kindly make one for Oracle? had problem refreshing mv in Oracle

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

    Very well explained 👍

  • @nareshsmily226
    @nareshsmily226 2 роки тому

    Please make a video on temp table on Oracle

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

    Really awesome 😎😎

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

    Please Cover Materealized view with Oracle

  • @mirageman2
    @mirageman2 2 роки тому

    Hi I would be interested in Materialized Views in Oracle and which options are at hand there.

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

    hello toufiq,
    can you please cover this video in oracle sql

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

    This video is nice

  • @neerajchouksey3761
    @neerajchouksey3761 6 місяців тому

    thanks

  • @soothingmusic9816
    @soothingmusic9816 4 місяці тому

    can we update the views ?

  • @SC-mx4wp
    @SC-mx4wp Рік тому

    Nice Bro

  • @rajkumarrajan8059
    @rajkumarrajan8059 6 місяців тому

    do the video in SQL SERVER, please

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

    Can I pay through net banking?
    Card is not allowing me to pay for August 3rd cohort?

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

      You will need to enable international payment on your card.. you can call your bank to enable it ..
      Many have done it and it got fixed immediately

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

      @@techTFQ i will check that to pay
      Thank you 👍

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

      Ok bro

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

      @@techTFQ i will join on Saturday bro.

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

      Cool buddy

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

    why you say 'viv'? and not view?

  • @xrexy
    @xrexy 3 місяці тому

    no shot 2 minutes in im still listening to a scam offering

  • @CodeChaos_
    @CodeChaos_ 7 місяців тому +2

    yes need materialized view in oracle

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

    Please make a video on oracle materialised view.

  • @jimzecca3961
    @jimzecca3961 2 роки тому +22

    Good summary. Two important items.
    1) The materialized view is essentially a normal table under the hood with query logic for populating it thus you can index it, etc.
    2) The data is basically static until you refresh it at which time it's flushed and the data is replaced by the result of the query at the new run time.
    They're particularly good when the performance to run the query is poor but the data doesn't have to be exact or up to the last second. For example, if you wanted to run a query that generates a report for the previous day you could create the materialized view to get the data from yesterday and run it on a schedule after midnight. Then the user can query the materialized view with a select * in the morning and get quick results without waiting on the query to execute against the base data. Sometimes it makes sense to have the materialized view to contain most of the result set and then some optimized query to just pull data from the current day, hour, etc. and union the results together.

    • @DaveThomson
      @DaveThomson Рік тому +1

      you can also refresh the MV using a function and run that function from a trigger based on some conditions.

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

    pls post a video on materialized view in oracle

  • @karennguyen7083
    @karennguyen7083 2 роки тому +5

    Hi techTFQ, thanks for uploading amazing video, I learned a lot from you. And now I have a question.
    I am confused about these syntax:
    - create view
    - create materialized view
    - create temporary table
    - with clause
    These syntax can store a subset data to reuse then, but when to use it?
    I knew we can use With clause when using specific subqueries many times but how are other syntax?
    Thank you so much.

    • @techTFQ
      @techTFQ  2 роки тому +3

      Hi Pham,
      I understand your confusion but difficult to explain it in comment here.. perhaps will do in a video

    • @karennguyen7083
      @karennguyen7083 2 роки тому +2

      @@techTFQ Happy to wait and thank you so much ^^

  • @shahid9813
    @shahid9813 Рік тому +3

    Learnt from you previous video instead of generate_series() function we can use Recursive .
    CREATE TABLE random_for_matvw (
    id INT PRIMARY KEY,
    value INT
    );
    WITH RECURSIVE rand(id, value) as (
    SELECT 1 as id, 1 as value
    UNION ALL
    SELECT id + 1, value + 1 from rand where id < 100000
    )
    INSERT INTO random_for_matvw(id,value) SELECT id, value FROM rand;

  • @Blowjin
    @Blowjin Рік тому +1

    Thank you! So, as I understood, matetrialized view is a kind of cache.
    It store query and it's result. Menwhile a just view stores query only.
    Nevermind, just my synopsis 😅

  • @EverydayKarma
    @EverydayKarma 19 днів тому +1

    Nicely explained. Thanks

  • @aap1803
    @aap1803 2 роки тому +6

    Hello Toufiq, I hope you are doing good. I'm learning PL/SQL for almost last 6 months now but i have struggled to hold grasp on PLSQL concepts but after watching your videos and how clearly you explain i was able to understand very good. Like your video on Materialized View i knew how it work but after watching your video i understood the concept fully. I would really thank you for your work. Same goes with Procedure, Joins. I have a request if you could make PLSQL videos on Trigger, Cursor,Function,Index,Record,Exception Handling,Package and other if you could. Thanks for the awesome work you are doing.

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

      Hi Achal, I am fine and thank you 🙏🏼
      Noted on the request, I’ll plan it

    • @nirmala3847
      @nirmala3847 2 роки тому +2

      @@techTFQ my request also same sir please make videos for all the important components your explanation is very good iam from telugu I don't know English very well but i understand your English it is very simple and understandable

    • @techTFQ
      @techTFQ  2 роки тому

      Thank you Nirmala 🙏🏼
      I will plan it

  • @MST_Finvest
    @MST_Finvest 2 роки тому +3

    Hello Brother,
    Awesome explanation with clarity.Please do video for mviews on oracle DB with many types of refreshes as you said and also can we have a view or mview on DML's instead of sql queries?

  • @kpoddarmeasme
    @kpoddarmeasme Рік тому +4

    I like the way you explain each and every concept in detail.If I don't understand any concept in SQL, I immediately switch to your channel and it really helps.

  • @asutoshkumar1793
    @asutoshkumar1793 9 місяців тому +2

    Great Explanation, also Pronunciation for View is "vu" 😊

    • @techTFQ
      @techTFQ  9 місяців тому

      Thanks & noted

  • @thamaraikannan7387
    @thamaraikannan7387 2 роки тому +2

    Bro, I don't have complete knowledge in mv views, only a little bit, if possible make a video for oracle mviews refresh method and auto refresh features how it's working.
    Thanks in advance.

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

      Noted bro and will do

  • @arunsundar3739
    @arunsundar3739 15 днів тому

    beautiful explained, fundamentals of MV & how it can be really powerful in analytics use cases :)

  • @akashgoel601
    @akashgoel601 2 роки тому +3

    Great video.. Pls consider making video for materialised view in oracle and it's different functionality.. Cheers!!

    • @techTFQ
      @techTFQ  2 роки тому +2

      Thank you and noted bro

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

      @@techTFQ Thanks Sir. Please make video for materialized view in Oracle.

  • @sangameshwarhippargi2007
    @sangameshwarhippargi2007 2 роки тому +2

    Thanks for this wonderful video. Please do create video on Oracle materialized view and it's refresh types.
    Thanks in advance.

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

      Noted and will do

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

    Spell it correctly bro, it view not weave _/\_

  • @endalekinfe3391
    @endalekinfe3391 4 місяці тому

    Some database systems, like SQL Server with indexed views, maintain the materialized view in real-time. Any changes to the base tables are immediately reflected in the materialized view. This means the view is always up-to-date,

  • @suviikshetty2969
    @suviikshetty2969 2 роки тому +3

    Hi tfq, worth watching . It was great and clear. Thanks for the video.

    • @techTFQ
      @techTFQ  2 роки тому +2

      Glad this helped

  • @archanachaube7027
    @archanachaube7027 2 роки тому +3

    Thanks for explaining concepts so clearly and simplifying complexed ones!
    Also can you make videos on Group by extensions (rollup, grouping sets.cube)

  • @oscararmandocisnerosruvalc8503

    Hello TFQ , Thanks a lot for all the knowledge you share.
    can you create a list using SQL for data engineering purposes pls, it would be great to see how you address this topic.
    Regards from Mexico !!!

  • @dineshresapu6086
    @dineshresapu6086 Місяць тому

    One doubt is , i have heard somewhere that materialized view can be created only for single table in sql query is it true?

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

    Took a while to figure out what you were saying when you're saying view - sounds like veev... LOL
    I can see a number of usual uses of materialized views.

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

    What’s the difference between a materialized view and a simple table structural?? Obviously you don’t have to create a table in data base instead you create a materialized view

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

    But why would I create a materialized view rather than create a table? What's the difference? It seems like they do quite similar things.

  • @nalinisathyanarayanan8666
    @nalinisathyanarayanan8666 2 роки тому +3

    Hi sir, Great work 👍 Really it's very helpful for learners like me... Expecting video by explaining Oracle materialized view concepts and refreshing methods too

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

      Thank you Nalini and will do that soon

    • @jirehla-ab1671
      @jirehla-ab1671 11 місяців тому

      Hi , i remember oraclr offering free entperse edition of oracle 21c (non-commercial use only), but i cant find the same equivalent for 23c since the 23c develop edition haa 12gb ram limit.

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

    Please make a video how to execute materialized view in oracle, Microsoft sql server, mysql workbench

  • @ChetanSharma-oy4ge
    @ChetanSharma-oy4ge 7 місяців тому

    how the temp table is different from them, I mean it also stores the data for a particular session, and materialized view does the same thing..

  • @gopinathkaki5982
    @gopinathkaki5982 2 роки тому +2

    If an employee implements materialized view...
    In general what can i expect the experience of that employee...?

    • @techTFQ
      @techTFQ  2 роки тому

      Depends.. generally 2+ yrs

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

    Can we create a Materialized view over normal view, how does this internally work. How would be the performance.

  • @clumsy_weirdo
    @clumsy_weirdo Рік тому +1

    It the the best tutorial for understanding. I'm really glad that I can recognize English speech because in my native language I didn't find any information about. Author, thank you!

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

    Thanks a lot🙏 u are doing unique work... please add more information integration and application videos in ur playlist...it will be great help...I am phd cse in IIIT Delhi...ur videos are helping 🙂add data warehousing view, virtual view etc if u will add more IIA videos I will suggest this channel to no of my classmates🙏

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

    sir your class videos are awesome ,i used to watch often sir if possible plz provide one or two classes on TRIGGERS AND JOB creation in postgresql

  • @shivinmehta7368
    @shivinmehta7368 2 роки тому +2

    Please create a full course on SQL on the udemy platform. It will be beneficial for learners

    • @techTFQ
      @techTFQ  2 роки тому

      Probably in the future bro

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

    Hi TFQ...what about materialised views in MSSQL...

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

    bro can you explain about array and struct plz i waiting for the videos

  • @Alexpudow
    @Alexpudow 8 місяців тому

    In Qlik we use qvd the same way, and incremental load if need.

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

    This video helpfull but not that much, so please make new video MV and refresh in Oracle. Thanks 🙏🙏🙏

  • @bindiyarastogi8793
    @bindiyarastogi8793 2 роки тому +2

    Your videos are really helpful and clear the concepts. Please make a series on pl/sql

    • @techTFQ
      @techTFQ  2 роки тому +3

      Noted Bindiya

  • @SravanthiKovvuri
    @SravanthiKovvuri 8 місяців тому

    If possible can you please make separate video of oracle views.

  • @SandeepSingh-qd1qy
    @SandeepSingh-qd1qy Рік тому

    It was really nice explanation. Yaa could you please create video for oracle

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

    Hi Tofiq! I wanted to know how it works in SQL SERVER?

  • @joshuabnguyen87
    @joshuabnguyen87 2 роки тому +3

    What is the difference between a materialized view and a temporary table?

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

      A materialized table isn't temporary.

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

      I’ll make separate video about it

  • @mounikapoosa4842
    @mounikapoosa4842 5 місяців тому

    Can you please make a video on Indexed Views in Sql server

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

    Materialise table using select*into ?? what does it means plss help me !

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

    The BEST Training for SQL learners, the teaching concepts are "JUST AMAZING"

  • @PradeepKumar-gq3jd
    @PradeepKumar-gq3jd Рік тому

    Pls post a video about execution plan cardinality optimization

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

    THERE IS ANY OTHER WAY TO PAY YOU IN COURSE FOR SQL QUIRES BECAUSE I HAVE PAPPAK CARD ONLY AVAILABLE IN PAKISTAN

    • @techTFQ
      @techTFQ  2 роки тому

      You will need to enable international payment on your card.. you can call you bank to do it.
      If that also does not work then Please msg me in discord , I will share other payment link..

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

    Hi Thoufiq. May I know if the materialized view applicable to MS SQL and My SQL?

    • @techTFQ
      @techTFQ  2 роки тому

      Yes Tony, it is present in both these DB’s

  • @indhumathiarul1077
    @indhumathiarul1077 4 місяці тому

    Could you please explain Oracle MV in detail ?

  • @geethikasumana7363
    @geethikasumana7363 6 місяців тому

    Hi can u please do video on materialized views in Oracle

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

    Very clear video ... Please show us materialized view in Oracle
    Thank you so much Toufig

    • @techTFQ
      @techTFQ  2 роки тому

      Your welcome buddy and sure will do

  • @ramkinkardastripathi8519
    @ramkinkardastripathi8519 2 роки тому +2

    Hey, can we write some line of code to automatically refresh like on each day the mv gets updated. Thanks in advance

    • @swapnilsolanki8595
      @swapnilsolanki8595 2 роки тому +3

      You can create a cron job to refresh MV at specific interval of time each day

    • @techTFQ
      @techTFQ  2 роки тому +2

      Yes you can schedule auto refresh of MV..
      One as Swapnil said above and also we have create a function or procedure to do the refresh and execute function inside the trigger and schedule the trigger when base table updates ..
      And there are other ways too..

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

      @@swapnilsolanki8595 Thank you

    • @ramkinkardastripathi8519
      @ramkinkardastripathi8519 2 роки тому

      @@techTFQ Thank you

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

      At the time of creating mv views we can give auto refresh, we have used the below query
      CREATE MATERIALIZED VIEW mv_name REFRESH COMPLETE ON DEMAND START WITH TO_DATE('specific date with time', 'Date format') NEXT (Next refresh time) AS "select statement ";
      It is oracle sql based, i don't know how about postgresql, If any in postgresql kindly share.
      CREATE MATERIALIZED VIEW mv_name REFRESH COMPLETE ON DEMAND START WITH TO_DATE('09-07-2022 13:00:00', 'DD-MM-YYYY HH24:MI:SS') NEXT (SYSDATE+6/24) AS SELECT EMPLOYEE.NAME FROM EMPLOYEE;
      It will refresh data every six hours.
      Thanks in advance..

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

    all your videos are very simple and helpful. Thank you. Can you please create a video on oracle performance tuning tips and also on how to partition oracle tables to improve sql performance

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

      thank you and noted on the request bro

  • @aniketjagdale7765
    @aniketjagdale7765 8 місяців тому

    Hi pls create videos on indexes and constraints in SQL

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

    awesome Tafaq .. thanks alot .. please continue sessions on Materialized views .. with all refresh methods .. it is very nice of you. Thanks once again

    • @techTFQ
      @techTFQ  2 роки тому +2

      Thank you and noted bro

  • @rika0729
    @rika0729 7 місяців тому

    please the text editor / IDU u are using sir... or someone else, please tell..!!

    • @techTFQ
      @techTFQ  7 місяців тому

      Its PostgreSQL database and PgAdmin IDEA

  • @Munichandra_Reddy
    @Munichandra_Reddy 2 роки тому

    Hi there!
    in this query has not worked in Microsoft sql server Database
    insert into random_tab
    select 1,rand() from GENERATE_SERIES(START = 1, STOP = 10)
    please try to explain on Ms SQL server

  • @vijayjoshi-mw8cr
    @vijayjoshi-mw8cr 9 місяців тому

    Hello, Please make video on oracle database also...