Insert using the table with the clause and select?

Hello gurus,

Can I insert in a table by making use of clause and select?

something similar to this...
     insert into test_table
      (with abc as 
          (select * from emp_tble
           where dept_no = 10
           )
         select * from abc;
   );          

     if not i would i do by making use of  with clause & select ... any example would be great !!


  
Thank you very much!!!

Brackets are disturbing only:

SQL> insert into test_table
   (with t as (select * from emp) select * from t)
/
Error at line 12
ORA-32034: unsupported use of WITH clause

SQL> insert into test_table
  with t as (select * from emp) select * from t
/
14 rows created.

Tags: Database

Similar Questions

  • Try to add a page to a pages document. It worked until now but just finished page 13 with text and photos and cannot add another page, using macbook pro with El Capitan and the most recent version of the Pages.

    Try to add a page to a pages document. It worked until now but just finished page 13 with text and photos and cannot add another page, using macbook pro with El Capitan and the most recent version of the Pages.

    You have placed your beam to insert at the end of your text on page 13 and then apply Insert menu: Page Break? In the v5.6.2, Pages I just add a new page to a section of four pages to this approach.

  • Table with fixed header and the left column

    I created a table in my application with the fixed left column (left most column is fixed and remaining columns are scrolling from left to right). is it possible to create a table with fixed position and fixed left column?

    Suppose there are 50 rows and 10 columns in my paintings, and only 3 columns and 15 rows are visiable on the screen

    (1) when the user scroll left to right left only most of the columns must be fixed. Remaining cap of the table and column scroll left to right and vice versa. also

    (2) when user scroll high high bottems single topic most must be fixed and remaining all lines (with to the left most column) should be scrollable.

    I am able to put in place a point at the top, but not both. Please suggest

    "If I repopulate the value in the cell when user scrolling, shell, I get scrolling effect correctly as it only shows half cell when the user highlight half of the cell."

    Approach using TablelayoutManager display single cells and scrolling would be cell at a time.  And Yes, you will need to override navigationMovement and n of methods appropriate TouchEvent your TableLayoutManager so that he knows when to fill the cells.

    Another alternative is to have four managers, we don't the the upper left corner (the dead angle), one to make the top row (column headings), one to make the left column (row headings), and the other to do the rest (data).  Place all these in a delicate header and line manager.  Only allow the user to scroll the data part.  Have the difficult Manager to listen the scroll events.  Then have the wily Manager add and remove the dummy column and header line managers as appropriate.  Note that these topic fields would not good passes, they would be either there or they would not be displayed. That would give you your 1/2 a scroll of the cell.  And you wouldn't have to substitute anything to detect movement, you would have left the listener do scrolling for you.

  • Using the MF and the "open a new tab" + sign opens a new page with a list of site visited recently, which is a very useful tool. It works fine on my two desktop computers, but

    Using the MF and the "open a new tab" + sign opens a new page with a list of site visited recently, which is a very useful tool. It works fine on my two desktop computers, but I can't it to work on the laptop.

    I downloaded "New tab Pro" on the laptop (do not even see on desktop computers so don't think about) such that she was like the real deal but nope... do not work. Running the latest version of MF, ideas on how activate it please?

    Thank you guys are going to mark as 'resolved' BTW it is no "folder on the desktop named old data from Firefox. Hmmmmmm.

  • I finished the installation of Sharepoint 2010 and he is told to use the username and password you loged on the server with does not work. What should I do to access the sharepoint URL?

    I finished the installation of Sharepoint 2010 and went through the Setup Wizard. It is said to use the username and password you loged on the server with does not work. What should I do to access the sharepoint URL?

    Hello

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the TechNet Forum. You can follow the link to your question:
    http://social.technet.Microsoft.com/forums/en-us/sharepoint2010general/threads

  • I used the backup and restore of the backup C on pc. Then tried to open saved files with IE and started acting weird.

    zip files

    I used the backup and restore of the backup C on pc.  Then tried to open the files saved with IE.  IE went into free fall.  ???

    I have no idea what opened the backup files when you have double-clicked, or if you will not quote you took after doing this...  However, the official way to 'Browse' the content of the backup...

    You can view the contents of your backup by opening the wizard to restore files.

    1. Open backup and restore by clicking on the button start , clicking Control Panel, clicking system and Maintenance and then click Backup and restore.

    2. Do one of the following:

      • To view your files, click Restore my files.

      • To display files all the, click on restore files for all users. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    3. Do one of the following:

      • To browse the contents of the backup, click Browse for files or click Browse for folders.

        When you browse folders, you will not be able to see the files in a folder. To view individual files, use her browse for files option.

      • To search the contents of the backup, click search, type all or part of a file name, and then click search.

    If you back up to the top PC (VHD) integer then you mifght consider this trick:
    http://www.Petri.co.il/mounting-Vista-backups-using-Windows-complete-PC-Backup.htm

    According to the edition of Windows Vista that you have (and how useful, you will find the possibility to look at old versions of a given file and possibly restore), this could be useful to you:
    http://www.ShadowExplorer.com/
    (not a replacement of relief.)

    With regard to the rate of success vs. failure rate of backup - it is difficult to measure.  Indeed most of the people backs up incorrectly.  It's really * not * enough to set a backup and forget about it.  If you test ever that your backups work/glance to see if you are backing up the good thing - it's just not wise.  Although most people expect that it is essential that the backups were working properly (not a test, a real emergency) to be discovered.  Most individuals who report failures, unfortunately, fall into this category "when my aircraft crashed and I went to my backups - it turns out _ backup _ does not and never told me...» ».

    A question... If you manually create a ZIP file (not a backup) - can you still Explorer in it as a folder?

    To test... Create a folder on your desktop.  Copy some files into it - of different types.  I say COPY and not MOVE on the goal here - because you can just blow this folder and all that results from this folder later if it was all fair copies of things.

    Make a right click on this folder and choose "send to" and "compress (ZIP) file and give a name to the new 'folder '.  (It's really a file.)  On your desktop, you should have the original folder you created and copied some stuff in, and a new "folder" with the name you just gave.  If you open the 'new' folder - you should see the name of the folder that is still on the desktop and go to this folder, you should see the files.  You literally use Windows Vista to the 'discovery' inside a ZIP file as if it were a folder.

  • Inadvertently, I moved my cursor using the touchpad and it decreased my policy and I can't go back to a larger size. my daughter thinks it has something to do with scrolling

    Inadvertently, I moved my cursor using the touchpad and it decreased my policy and I can't get it for a larger size. my daughter thinks it has something to do with scrolling

    You did not mention this program what happens to, but even in the case of the office, there are standard methods to adjust the zoom level with the keyboard.

    Press Ctrl and more (e, g +) together to increase the zoom level and Ctrl and less (for example) - all to reduce. The keys more or less can be those at the top of the classic (for example to the left of the back) keys or the numeric keypad if you have one.
    Alternatively, you can hold down the CtrI down while turning the scroll of the mouse wheel to adjust the zoom level of the window that the cursor of the mouse is on.
    Many programs have a slider or box to adjust the zoom level. It is usually at the bottom right of the application window. Similar zoom adjustments may be able to make the menu display, Zoom the program.
  • I can't open the RAW files from my Nikon D800 (i.e. NEF files).  I use a Mac with Photoshop CS5 and El Capitan 10.11.2 version running.  I get a message "could not complete your request because the file appears to be a model of camera that is n

    I can't open the RAW files from my Nikon D800 (i.e. NEF files).  I use a Mac with Photoshop CS5 and El Capitan 10.11.2 version running.  I get a message that "could not complete your request because the file appears to be a model of camera that is not supported by the installed version of Camera Raw. Please visit the Camera Raw help documentation for more information. "Yet the Nikon D800 is on the list of supported devices.  Can anyone help?

    And temporarily disable the Gatekeeper by allowing downloads from anywhere, or your installer will be marked as 'damaged' because that CS5 is out before Gatekeeper and is not "signed" that is not approved.

  • Mac OS 10.6.8 - Photoshop CS5.1 after years of perfect use, suddenly I'm unable to select a layer by clicking on the image and select it in the layers palette.  Solve this problem for me and I'll buy you a new car.  With our thanks, David Heidelberge

    Mac OS 10.6.8 - Photoshop CS5.1

    After years of perfect use, suddenly I can't select a layer by clicking on the image and select it in the layers palette.

    Solve this problem for me and I'll buy you a new car.

    With our thanks, David Heidelberger

    Hi David

    Have you checked your settings to automatic selection in the upper left of the workspace?

  • My students use the filling and the signature on a package of .pdf tool I'm going to fill them, but when they record and open the next day their text boxes, that they created with the bucket fill tool and sign all went and many are overlapping.

    My students use the filling and the signature on a package of .pdf tool I'm going to fill them, but when they record and open the next day their text boxes, that they created with the bucket fill tool and sign all went and many are overlapping.

    Hi chbradshaw,

    Instead of filling & signature, tool, use the text comment comment tool, KB doc option. using comments in the PDF, Adobe Acrobat DC files (keyword: Add a text comment).

    Kind regards

    Nicos

  • I use a PC with Windows 10 and Lightroom 6.1.1. When in the develop Module of Lightroom freezes when I try to edit the next picture after correcting the first.

    I use a PC with Windows 10 and Lightroom 6.1.1.  As soon as I want to move from a photo retouched to another in the develop Module, Lightroom freezes.  Can you help me?

    Hi Petra,

    > Try disabling the option of GPU in the Lightroom > edit > Preferences > Performance tab

    > Update your graphics card driver

    Hope this helps

    ~ Assani

  • I bought CS4 - have the box etc serial # - use an IMac with Snow Leopard - went to use the bridge and a screen came saying Adobe Bridge HOme Service was interrupted to concentrate on other resources... uh, I bought this software and how can we now

    I bought CS4 - have the box etc serial # - use an IMac with Snow Leopard - went to use the bridge and a screen came saying Adobe Bridge HOme Service has been discontinued for focus on other resources... uh, I bought this software and how it can now be 'gone '? Pls help - bridge is very convenient and I paid for it!

    See here:

    Deleted Adobe Bridge Home service

  • Selection of the list of clients using the clause "EXISTS".

    Dear all,

    I have 3 tables, say,

    TABLE1:

     

    CUST_CODE

    (PRIMARY KEY)

    CUST_NAME

    CUST_COUNTRY_CODE

    CUST_CITY_CODE

    CUST_AREA_CODE

    A

    CUST1

    COU1

    CIT1

    A1

    B

    CUST2

    COU2

    CIT2

    A2

    C

    CUST3

    COU2

    CIT2

    A3

    D

    CUST4

    COU3

    CIT4

    A4

    E

    CUST5

    COU3

    CIT5

    A5

    TABLE2

     

    STOCK_SYS_ID

    (PRIMARY KEY)

    STOCK_CUSTOMER_CODE

    STOCK_CUSTOMER_

    COU_CODE

    STOCK_

    CUSTOMER_

    CIT_CODE

    STOCK_

    CUSTOMER_

    ARE_CODE

    STOCK_DOC_

    CREATED

    1

    A

    [Leaving empty as we have reference only to the customers and the date here...]

    10/15/2015

    2

    B

    15/09/2015

    3

    A

    16/08/2015

    4

    C

    18/08/2015

    5

    E

    22/07/2015

    6

    C

    31/01/2015

    7

    A

    15/10/2014

    TABLE 3

     

    AREA_CODE

    AREA_COUNTRY_CODE

    AREA_CITY_CODE

    A1

    COU1

    CIT1

    A2

    COU2

    CIT2

    A3

    COU3

    CIT2

    A4

    COU3

    CIT3

    A5

    COU4

    CIT5

    How can I find the list of clients of TABLE1, which are present in TABLE2 by 2015 and have country-city-zone, both correct mapping as specified in section TABLE3 using the clause "EXISTS".

    Is that my output will be like,

     

    CUST_CODE

    (ONLY CORRECT CUSTOMER CODES)

    CUST_NAME

    A

    CUST1

    B

    CUST2


    Thanks in advance,

    Séverine Suresh

    Hello

    So, you want to see 3 columns in table1 correspond to 3 columns in t3.  It is not enough for only 1 column equal:

    Area_Code must be equal

    country_code and must be equal

    city_code and must be equal.

    Here's a way to encode that, by using the EXISTS operator in a WHERE clause:

    SELECT cust_no, cust_name

    FROM table1 t1

    WHEN THERE IS)

    SELECT 0

    Table 3 T3

    WHERE t3.area_code = t1.cust_area_code

    AND t3.area_country_code = t1.cust_country_code

    AND t3.area_city_code = t1.cust_city_code

    )

    ;

    I hope that answers your question.

    If not, please post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and the results you want to start from these data (otherwise what you've posted already).

    Explain, using specific examples, how you get these results from these data.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: Re: 2. How can I ask a question on the forums?

  • Is it possible to create a shuttle component in Oracle ADF, where the available and selected lists are tables of the adf?

    Hi all


    We use JDeveloper Studio Edition Version 12.1.3.0.0 and deployed on GlassFish Server Open Source Edition 3.1.2.2 (build 5) and connect to the SQLServer database.


    Is it possible to create a shuttle component in Oracle ADF, where the available and selected lists are tables of the adf?



    I did a POC sample on it. I can share with you. I can't put in my dropbox because dropbox is blocked in my network. Share your email. I'll send the POC through

  • Try to generate minutes date using the minimum and maximum date

    Hello

    Generate data to date in minutes using the min_time and max_time of the table or query specified, below
    With time_data as
    (SELECT 1 sr, TO_DATE('5/5/2009 7:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM') min_time,
                  TO_DATE('5/5/2009 9:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM') max_time FROM DUAL
     UNION ALL
     SELECT 2 sr, TO_DATE('5/5/2009 10:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM') min_time,
                  TO_DATE('5/5/2009 12:00:00 PM', 'MM/DD/YYYY HH:MI:SS AM') max_time FROM DUAL)
    SELECT * FROM time_data;
    
    SR     MIN_TIME     MAX_TIME
    1     5/5/2009 7:00:00 AM     5/5/2009 9:00:00 AM
    2     5/5/2009 10:00:00 AM     5/5/2009 12:00:00 PM
    The output I am looking for is,
    5/5/2009 7:00
    5/5/2009 7:01
    5/5/2009 7:02
    .
    .
    .
    5/5/2009 9:00
    5/5/2009 10:00
    5/5/2009 10:01
    5/5/2009 10:02
    .
    .
    .
    5/5/2009 12:00
    I tried this query, but it seems not to work,
    With time_data as
    (SELECT 1 sr, TO_DATE('5/5/2009 7:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM') min_time,
                  TO_DATE('5/5/2009 9:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM') max_time FROM DUAL
     UNION ALL
     SELECT 2 sr, TO_DATE('5/5/2009 10:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM') min_time,
                  TO_DATE('5/5/2009 12:00:00 PM', 'MM/DD/YYYY HH:MI:SS AM') max_time FROM DUAL)
    SELECT TRUNC(TRUNC(min_time)+level/1440,'MI') udates FROM time_data
    connect by TRUNC(TRUNC(min_time)+level/1440,'MI')  <= TRUNC(max_time, 'MI');
    Ideas please...

    With 10g
    Salim cordially.

    WITH time_data AS
         (SELECT 1 sr,
                 TO_DATE ('5/5/2009 7:00:00 AM',
                          'MM/DD/YYYY HH:MI:SS AM'
                         ) min_time,
                 TO_DATE ('5/5/2009 9:00:00 AM',
                          'MM/DD/YYYY HH:MI:SS AM'
                         ) max_time
            FROM DUAL
          UNION ALL
          SELECT 2 sr,
                 TO_DATE ('5/5/2009 10:00:00 AM',
                          'MM/DD/YYYY HH:MI:SS AM'
                         ) min_time,
                 TO_DATE ('5/5/2009 12:00:00 PM',
                          'MM/DD/YYYY HH:MI:SS AM'
                         ) max_time
            FROM DUAL)
    SELECT min_time dt
      FROM time_data
      model partition by (sr)
      dimension by (1 rn)
      measures( max_time,min_time,(max_time-min_time)*24*60+1 dif)
      (min_time[for rn from 1 to dif[1] increment 1]=min_time[1]+ numtodsinterval(cv(rn)-1,'minute'));
    

Maybe you are looking for