GLOBAL TEMPORARY TABLE (GTT) IN ORACLE SQL WITH EXAMPLES

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 พ.ย. 2024

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

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

    Your explanation is so fantastic. Thank You so much for your best explanation....

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

    I got good clarity by seeing your vedio thanks a lot
    Please upload some senirio based questions also

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

    Thak you for clear explanation

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

    Well Explained.
    Can you Pls apply this GTT to a Performance issue and make a video ,So that everyone will be aware of Real usage of GTT ?

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

    Hi Manu,.tq for sharing useful video,. Pls help me. How do i do If i want to pull data from existing tables through temp table inside procedure in Oracle.???

  • @ramchinthakayala2092
    @ramchinthakayala2092 5 ปีที่แล้ว

    You have explained really Awesome!!! can you please explain about not logged [on rollback delete rows] also?

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

    Thank You! I,couldn't hear your voice much louder.
    Do you have any other videos' to watch out about SQL?

    • @KishanMashru
      @KishanMashru  7 ปีที่แล้ว

      Sure checkout the below playlists, hope you have subscribed to our channel :)
      th-cam.com/video/NYwZPgnOIk4/w-d-xo.html
      and another one
      th-cam.com/video/OgEmJtOQ7hg/w-d-xo.html

  • @gauravdutta5486
    @gauravdutta5486 4 ปีที่แล้ว

    Hello Sir , Thanks for the explanation , I have a question
    If we associate a trigger in a GTT ( Transaction specific ) to replicate the same inserted data in another permanent table !
    ON COMMIT the rows will be deleted in the GTT ! but what will happen to the data replicated into another table by that Trigger ?
    Also can we have check / not null / unique key constraints in a GTT ?

  • @nimnim1866
    @nimnim1866 7 ปีที่แล้ว

    very nice. Thanks a lot for helping me understanding about GTT

    • @KishanMashru
      @KishanMashru  7 ปีที่แล้ว

      Welcome Syed!!! Hope you have given the video a "thumbs up" and subscribed to our channel :)

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

    Very nice and simple explanation kishan...

    • @KishanMashru
      @KishanMashru  7 ปีที่แล้ว

      Thanks!!! I am glad you enjoyed it, hope you have give the video a "thumbs up" and have subscribed to our channel

  • @nageswararaoboya4670
    @nageswararaoboya4670 6 ปีที่แล้ว

    Nice Explanation Good work!! Thank you

  • @anilk3417
    @anilk3417 5 ปีที่แล้ว

    Simple and best explanation :)

  • @sprangyabehera4227
    @sprangyabehera4227 5 ปีที่แล้ว

    Hi ,the video is very nice.But I have two questions on this .
    1. On delete preserve :usually as it is a temporary table data will be present till session is active ,then why to use this statement.
    2. Not logged on rollback :when generally we do rollback ,data goes off ,then why use this.
    Please clear my doubt.

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

    Audio is not loud. Quiet louder is expected.

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

    Sir have one doubt, in which case we use " On commit Delete" command...if possible then please explain,thank you Sir

    • @KishanMashru
      @KishanMashru  6 ปีที่แล้ว

      When you do not want to store the data permanently into the table, use ON COMMIT DELETE.
      Say, you need to insert data into a table by selecting data from multiple tables and performing some complex transformations on them. So in such cases GTT will let you store any intermediate form of data, now you do not want the data in GTT after the insert is completed, in such cases an ON COMMIT DELETE will flush out the data from GTT after an INSERT is followed by a COMMIT.
      Also this will help you to bother less about the data in GTT and focus on actual functionality.

  • @ramchinthakayala2092
    @ramchinthakayala2092 4 ปีที่แล้ว

    can we create GTT using dynamic SQL? If yes please explain.

  • @KupoIsaiah
    @KupoIsaiah 7 ปีที่แล้ว

    Can you insert a SQL statement into a temporary table?
    For example:
    INSERT INTO GTT_COUNTRY (select country_ID, country_name from country_table where rownum

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

      ya Isaiah we can :)
      -- create gtt table
      create global temporary table test_gtt
      (
      id number,
      name varchar2(50)
      );
      -- create table
      create table test_insert
      (id number,
      name varchar2(50)
      );
      -- insert record into table
      insert into test_insert
      values (100,'kishan');
      -- commit
      commit;
      -- insert data into gtt with a insert into select
      insert into test_gtt
      select * from test_insert;
      -- query gtt table
      select * from test_gtt;
      -- 100 kishan
      Hope this helps!!!
      Subscribe and like, if you haven't done it yet :)

  • @saichopperla09
    @saichopperla09 7 ปีที่แล้ว

    It is necessary to mention on commit delete and preserve while creating gtt

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

    Great explanation of global temp tables. Can you speak up a little bit? Your volume was low on this video

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

    Good Explanatin..

    • @KishanMashru
      @KishanMashru  7 ปีที่แล้ว

      Thanks, man!!! :) Hope you have liked the video and subscribed to our channel for latest updates.

  • @ghulamabbas8503
    @ghulamabbas8503 7 ปีที่แล้ว

    a very helpful vedio

    • @KishanMashru
      @KishanMashru  7 ปีที่แล้ว

      Thanks, hope you have given the video a thumbs up and subscribed to our channel for all the latest updates!!!

  • @raju34567-d
    @raju34567-d 6 ปีที่แล้ว

    Bro can u upload video on Oracle architecture

  • @ssss-uy6jh
    @ssss-uy6jh 5 ปีที่แล้ว

    Nice

  • @rajeshranjan3325
    @rajeshranjan3325 6 ปีที่แล้ว

    Explanation is good but could have spoken a bit louder.

  • @manojnibrad6635
    @manojnibrad6635 7 ปีที่แล้ว

    Buddy, Video is good but while you speak that time breathing sound is coming and it is disturbing so remove this sound.

  • @raju34567-d
    @raju34567-d 7 ปีที่แล้ว

    Nice bro please speak loud

    • @KishanMashru
      @KishanMashru  7 ปีที่แล้ว

      Sure man!!! :) have taken care of it from my recent uploads.