best way to create a table based on another table

Hello
I am trying to create a table based on another table with all the data in it. It contains important data.

create table < tablename > select * from table1.

Is the best way to do it, or is there another way. Please advice.

Thank you

Insert / * + append * / in as select * from ;

It should be->

insert /*+ append */ into 
select * from ;

Kind regards.

LOULOU.

Tags: Database

Similar Questions

  • Best way to select distinct values, based on another column?

    I have a table with three columns: id (NUMBER), data_dt (DATE) and data_value (NUMBER).
    There is a primary key id and data_dt.

    I want to choose the folder with the last data_dt for each unique identification number.

    What is the best way to do it?
    I have three different methods, but there may be something that I am missing.

    First of all:
    SELECT *
    FROM
    (
      SELECT id, data_dt, data_value,
             FIRST_VALUE(data_dt)
             OVER (PARTITION BY id ORDER BY data_dt DESC) AS last_data_dt
      FROM the_table
    )
    WHERE data_dt = last_data_dt;
    (I use ORDER BY... DESC, instead of just ORDER BY I don't need the clause BETWEEN the LINES)


    Second:
    SELECT t1.*
    FROM the_table t1
    JOIN
    (
      SELECT id, MAX(data_dt) AS last_data_dt
      FROM the_table
      GROUP BY id
    ) t2 ON (t2.id = t1.id AND t2.data_dt = t1.data_dt);
    Third:
    SELECT t1.*
    FROM the_table t1
    WHERE t1.data_dt =
    (
      SELECT MAX(t2.data_dt)
      FROM the_table t2
      WHERE t2.id = t1.id
    );
    -Don

    As mentioned in hoek, you will need to test all scenarios.

    However, in my opinion the more faster will be those who accesses the table that only ONCE instead of TWICE as some scenarios require.

    HTH!

  • Simple table - best way to create in the Muse?

    Hello

    I want to insert a simple table into a page in Muse.  This is an Excel spreadsheet with 6 rows and 4 columns.  It seems that I can select the cells in Excel, copy and paste in Muse.  I can also create the table directly in Muse using text boxes with striped borders - easy since my table is so small.  I read the posts here on the use of object and place, but I don't know that I need it.  I didn't need the ability to modify the data of Muse.

    My question is this: what is the best way to create a simple table in Muse?

    Thank you.

    John

    Hello

    This really depends on your preferences as well as the specific features of the table that you want to create. In your case, because the table is simple and does not need to be edited, it may be more simple create the table using text boxes and stroked the borders in muse (as you already have) you don't need to use more than one program.

    However, have you ever needed the ability to modify your tables, your best bet is to integrate the HTML code in Muse. You can do this with a table in Excel:

    What are the exact steps to get an array of Exel to Muse.

    Or create the table using a HTML generator:

    HTML - TablesGenerator.com table generator

    No option requires no knowledge of HTML. I hope this helps!

  • Best way to create an effect of 'type '.

    Hi guys again.

    I was wondering what you all thought was the best way to create an effect as if the text was "typed" on the screen (e.g. text 1 letter at a time, not as a single block)?

    I considered creating an array containing each letter had to be typed, then using a timer to display each letter in turn... but this seems rather ineffective, is there a better way to go about this?

    Cheers for your help

    You don't need to create a table, simply use a string and walk your way through it a charAt() both.

  • What is the best way to refresh the table after autosubmit (10.1.3.4)

    What is the best way to refresh the table after autosubmit?

    I have a page that contains a table where if one of the fields is changed it autosubmitted where the view object changes some attributes, based on the field having been changed. I need these modified attributes that appear in the table. But without doing anything, the only way to see these values is to cause the iterator updated table.

    I've been refreshing the table is having a method in a grain of beacking called "getSystemSettingIter.getCurrentRow ();". This seems to be a bit of a hack for me and I was wondering if there is a better way to get the table to update.

    Thanks in advance!

    Have you tried setting between the two partial page refresh?
    http://www.Oracle.com/pls/as111120/lookup?ID=ADFUI385

    http://download.Oracle.com/docs/CD/E15523_01/Web.1111/b31974/web_form.htm#CACEIEEI

  • What is the best way to create a backup external to the files from my laptop?

    What is the best way to create a backup external for my laptop files which may be about 40 GB +.

    There are a few utilities in Windows that will help you to back up data. Consult the following link:

    http://www.Microsoft.com/athome/Setup/backupdata.aspx#fBid=UkLRcjvJbN_

    There are many third party tools that will help you to do so. Here's a free:

    http://www.ssesetup.com/SDB.html

  • What is the best way to create the layout for a single page website in Adobe Muse?

    I was wondering the best way to create the layout for a single page website in Adobe Muse. Does anyone have any suggestions?

    You can have access to this tutorial (and their other) a month for only $9.99. Is it too expensive for you!

  • What is the best way to create the USER variable in BI applications?

    I just installled BI Apps and try to integrate EBS R12 with OBIEE 11 g

    We have the USER variable that is already defined in the RPD to BI applications.

    In the security context init EBS block, I need to set the USER variable, but when I would define it it... He said * 'USER' has already been defined in the variable "authentication." "" USER. "

    What is the best way to create the variable USER security context of EBS init block?

    (1) remove the existing USER variable and then set a new (in this case, all the places where the variable USER is getting used to the RPD would become < missing >)
    And told me that he shouldn't do.

    Let me know how it is possible.

    Thank you
    Ashish

    Disable the existing Init block and then double-click the USER variable and press NEW to create the new Init block

    Thank you

    Published by: Srini VIEREN on May 1, 2013 16:18

  • best way to create an employeeid

    Dear expert;

    What is the best way to create an employeeid... If I'm not planning on using sequence...

    A sequence would be the best way.
    But if you have compelling reasons for what is not to use a sequence, there is also SYS_GUID.
    http://www.Oracle.com/pls/db112/search?remark=quick_search&Word=SYS_GUID

  • AS3 best way to clear a table

    What is the best way to clear a table? (performance and resources)

    Array.Length = 0;

    array = [];

    array.splice(0);


    Array.Length = 0;

  • What is the best way to create a dialog box

    Hello

    What is the best way to create a dialog box? I tried subclassing of step, but this way the window appears in the windows task bar.

    Thanks in advance, see you soon,.

    not appearing is not on the windows taskbar

    Also called dialogStage.initOwner (parentStage)
    http://docs.Oracle.com/JavaFX/2/API/JavaFX/stage/stage.html#initOwner%28javafx.stage.window%29

  • The best way to create by lining up the points Leader?

    What is the best way to create alignment of points leader? I want to create the following:

    align leaders.jpg

    I created this by typing the material on the left, then the right material, and then return to tapping period tab, tab period, period of the tab, as needed to fill the space between the two. It is very good. And if I want the spacing of the points to be different, I can do it in advance and get the spacing I want. BUT I can not easily change anything. If I change the material to the left or right to make it longer or shorter, it messes up the points and I need to correct by hand. Even if I change the tab spacing. Is there a way to do so that I don't have to type each point individually, and that if I change everything adjusts accordingly?

    You can even select just the tab and increase your follow up to 600 for the effect of spaced points of leader. (Period and word used as the Fill tab space)

  • What is the best way to migrate your Adobe software on another computer?

    What is the best way to migrate your Adobe software on another computer?

    Install the software, does not migrate/transfer it.  If you need to download links for the software and see you not in your Adobe account online, just determine what applications or Suites is necessary and it might be possible to provide links.

  • What is the best way to create tables in Illustrator cs5

    Hi all

    I am currently working on the contribution of a project for a printer Board. He must have rows and columns so that a project can be followed and assigned on a day to day basis. I thought I would just create a table for this. Is there a good way to create tables in Illustrator cs5?

    You can also copy and paste the ID table to HAVE, but since they cannt be bound as pdf or eps he ae limits to how much you can edit

  • Give advice on the best way to create tables

    Hello

    I'm just after the best method to create a pdf document that got charts?

    I have an order form which must be converted to an editable pdf form that users can fill in electronically and email back. Currently, the document is in Excel, and while I can convert it to PDF, I prefer to create the whole thing using the PDF.

    Should what tools I use for this?

    Kind regards

    Peter

    PDF files should not be created from scratch and if you try to do you will soon discover that it is extremely difficult and heavy.

    Stick with the creation of the file in Excel (or any other similar application, such as Word, InDesign, etc.) and then convert to PDF and add form fields in Acrobat.

    Be sure to keep a copy of the Excel file, well, in case you need to make any changes to the layout of the file later.

    If you don't do this then you can order replace Pages use in Acrobat to insert new pages (static) on the 'old' in your PDF file, that will keep all the form fields and scripts of tact. You need to just adjust the locations or the size of the fields, where this is necessary.

Maybe you are looking for