Oracle Interview question : what is dual table in oracle

Sdílet
Vložit
  • čas přidán 6. 09. 2024

Komentáře • 68

  • @kumark2579
    @kumark2579 Před rokem +1

    You told that DUMMY column size is 1. That means varchar2(1) should store only one value/character, just like X or 1 or A or C etc. But how we are getting 100 when we execute select 20+80 from dual; Ideally it should show only 1 value/character as the size is 1. So please let me know what is the meaning of 1 in Varchar2(1). Is it allows only 1 character/value OR is there any other logic ?. If it takes 80+20 as a literal, then how ADDITION is happening???

  • @shivenkhajuria2488
    @shivenkhajuria2488 Před 3 lety +3

    This video series is pure art. And Siva Sir is the artist!!!

  • @martinsuresh5048
    @martinsuresh5048 Před 6 lety +1

    very helpful information hatsoff sir

  • @pavan3137
    @pavan3137 Před rokem

    Your videos will help many people to crack the interview. Abundance knowledge. Thank you for all the efforts:)

  • @venubabulanke2668
    @venubabulanke2668 Před 4 lety +1

    Super Bro... Ultimate Explanation..👍👍👍

  • @omkardl678
    @omkardl678 Před 3 lety +1

    I am addicted to ur explanation..can u please tell me how to learn reg_expressions in easiest way..every time I am feeling difficult to learn this topic

    • @SivaAcademy
      @SivaAcademy  Před 3 lety

      🙂 Thank you bro, I will post the same way how I learnt, please stay tuned

  • @shahrukhtramboo6781
    @shahrukhtramboo6781 Před 5 lety +1

    atlast someone with an explanation. sir can you please explain why we use select * from dual in INSERT ALL

    • @SivaAcademy
      @SivaAcademy  Před 5 lety

      @Shahrukh, as per "INSERT ALL" statement syntax, the subquery at the end of inter all statement is mandatory, and incase if you are not planning to use any value from subquery, just to complete the syntax, you can use the dual to finish the syntactically correct statement. Hope this helps, i will post a video on insert all soon for everyone's benefits.

  • @PriyankaKumari-ul7bv
    @PriyankaKumari-ul7bv Před 5 lety +1

    very nice information thanks

    • @SivaAcademy
      @SivaAcademy  Před 5 lety

      @Priyanka, Thanks for your comment :-)

  • @nandiniagarwal8561
    @nandiniagarwal8561 Před 4 lety

    Thanks alot I have learnt so many things which I don't know in each and every video and have subscribed soon.

  • @akshayphadnis
    @akshayphadnis Před 3 lety +1

    If dual has type of varchar2(1) then how can it accommodate 'WE' as output in substring example and even Sysdate and all which are way of more size than just varchar2(1)??

    • @SivaAcademy
      @SivaAcademy  Před 3 lety +1

      We are not actually fetching any of these values from dual table or the dummy column of dual table. for eg, select 100 from dual, in this case, the 100 is just a numeric literal, and its not getting fetched from dummy column. These will act like pesudo column, or virtual column, these were not present in table, however will act like a column of table.

    • @akshayphadnis
      @akshayphadnis Před 3 lety +1

      @@SivaAcademy Thank you 👍👍

  • @KalyanS
    @KalyanS Před 3 lety

    nice video
    very good explanation

  • @kevinabraham92
    @kevinabraham92 Před 2 lety

    Really useful content. Super!

  • @abderrahimhaddadi4023
    @abderrahimhaddadi4023 Před 4 lety +1

    I didn't get the 4:51 query, the one with the "Welcome". Can give more details please !

    • @SivaAcademy
      @SivaAcademy  Před 4 lety

      Look into this video for detailed explanation czcams.com/video/0wPqz4GqB_w/video.html

  • @abduljawadpalla7911
    @abduljawadpalla7911 Před 2 lety

    Hi Siva sir, As dual is Pesudo coloum it will be frame in same manner as our select query is framed.
    Correct me if I am wrong?

  • @mohitadvani875
    @mohitadvani875 Před 2 lety

    Select 'A' as col_name from dual
    Union All
    Select '1' as col_name from dual
    Output for this would be ?

    • @SivaAcademy
      @SivaAcademy  Před 2 lety

      Please look into this video
      czcams.com/video/tK_BptiZcvg/video.html

  • @borjonx
    @borjonx Před 3 lety

    This is awesome - thanks for sharing!

  • @vikaskumar-qr5tj
    @vikaskumar-qr5tj Před 3 lety

    Hi Siva how to handle the merge join cartesian issue while population of huge no of records i get this issue frequently in my realtime project can you make a video on how to handle it or what is the approach to handle it??

  • @zulkaifahmad9511
    @zulkaifahmad9511 Před 5 lety +1

    Awesome. Can you please make videos on sql queries from interview perspective?

    • @SivaAcademy
      @SivaAcademy  Před 5 lety

      @Zulkaif, Thanks for your comment, Posted 13+ question till now on this playlist, more question i will be posting whenever i get time, please stay tuned.
      czcams.com/play/PLb1qVSx1k1VpEqAXgoFn5p7kFVzgsvUgM.html

    • @prashantnarode6702
      @prashantnarode6702 Před 2 lety

      @@SivaAcademy i want learn function ,procedure and packages from you

  • @darbardarbar9460
    @darbardarbar9460 Před rokem

    Sequences used in pl/SQL without dual table sir make a video on this topic

  • @supriyasabbu7523
    @supriyasabbu7523 Před 4 lety

    what will the query "union select(1) from dual" will return?

  • @ananditakansal6614
    @ananditakansal6614 Před 4 lety

    One of the interview questions: Will this dual table be present in all_tables like other tables?

  • @dilipkumar-hb8vk
    @dilipkumar-hb8vk Před 5 lety

    Nice video

  • @vidyag9403
    @vidyag9403 Před 3 lety

    Thank you so much for all your videos. It's easy to understand. I have learnt lot from your video series. Could you please make videos about Joins and types of joins.

    • @SivaAcademy
      @SivaAcademy  Před 3 lety

      Thank you, sure, please stay tuned, will cover in upcoming videos

  • @sarvanikaluguri3105
    @sarvanikaluguri3105 Před 4 lety

    Will varchar datatype col returns numbers? If the dummy column is of varchar type how it is returning numbers? Please explain.

    • @SivaAcademy
      @SivaAcademy  Před 4 lety

      We are not selecting number or any other datatype from varchar column, instead we are selecting a specific literal value in select clause, it will behave like a pseudo colum., not necessarily selecting from the underlying base table

    • @sarvanikaluguri3105
      @sarvanikaluguri3105 Před 4 lety

      @@SivaAcademy Thanks ji got it.

  • @mohitadvani875
    @mohitadvani875 Před 2 lety

    Select 1*1, 2*2, 3*4 from dual
    Output for this is ??

  • @bhushanpalse516
    @bhushanpalse516 Před 2 lety

    How to find duplicate rows without joins in sql from two tables

    • @SivaAcademy
      @SivaAcademy  Před 2 lety

      Not sure whether this will help you,
      czcams.com/video/H47NtICRjzI/video.html

  • @umeshchandrapandey4377

    Can you make vedioes on merge sql , report and forms .

  • @user-md9qp8qh6v
    @user-md9qp8qh6v Před rokem

    how we ca get first 10 records?

  • @shashank2004
    @shashank2004 Před 5 lety

    Can we create table that have functionality same like dual table? If yes then how? PLs reply

    • @SivaAcademy
      @SivaAcademy  Před 5 lety

      You can create your own table, with one column and one row (similar to dual table), and you can use instead of dual table.
      If you need to access your own table across other schema, then you can grant and create synonym for that. SO technically you can use, but the dual table was created by oracle to handle all scenarios, normally we wont create our own table.

  • @devilsgaming5915
    @devilsgaming5915 Před 4 lety

    What is connect by level here sir? How it works sir can you please explain sir

    • @SivaAcademy
      @SivaAcademy  Před 4 lety

      connect by level is part of hierarchical query, will explain in some other video, please stay tuned

  • @vishwas22khare
    @vishwas22khare Před 3 lety

    Why Oracle has dual table while other database doesn't.

  • @prashantnarode6702
    @prashantnarode6702 Před 2 lety

    How to retrieve 20 or more rows from dual table .....like this quetion
    Ans me this quetion

  • @Noorjahan-ti5rq
    @Noorjahan-ti5rq Před 4 lety

    Can we insert data into dual table

    • @SivaAcademy
      @SivaAcademy  Před 4 lety

      yes you can do as sys user...though we never do it, and its not recommended too

  • @vivektarab16
    @vivektarab16 Před 25 dny

    What is Dual - 0:33