I had run a  query  I want to insert that query result into another table how it is please suggest me

1
1
EC101
P
15
P
40
2010-11-01
1
2
1
EC102
P
10
P
30
2010-11-01
1
3
1
EC103
P
8
P
50
2010-11-01
1
4
1
EC104
P
5
P
25
2010-11-01
1
5
1
EC105
P
10
P
40
2010-11-01
1
6
1
EC106
P
12
P
45
2010-11-01
1
7
2
EC101
P
20
P
50
2010-11-01
1
8
2
EC102
P
15
P
60
2010-11-01
1
9
2
EC103
P
20
P
80
2010-11-01
1
10
2
EC104
P
14
P
46
2010-11-01
1
11
2
EC105
P
18
P
74
2010-11-01
1
12
2
EC106
P
16
P
68
2010-11-01
1
13
3
EC101
P
10
P
40
2010-11-01
1
14
3
EC102
P
20
P
60
2010-11-01
1
15
3
EC103
P
12
P
40
2010-11-01
1
16
3
EC104
P
20
P
50
2010-11-01
1
17
3
EC105
P
12
P
40
2010-11-01
1
18
3
EC106
P
14
P
60
2010-11-01
1
19
4
EC101
P
10
P
30
2010-11-01
1
20
4
EC102
P
14
P
40
2010-11-01
1
21
4
EC103
P
12
P
50
2010-11-01
1
22
4
EC104
P
8
P
46
2010-11-01
1
23
4
EC105
P
4
P
25
2010-11-01
1
24
4
EC106
P
16
P
68
2010-11-01
1
25
1
EC201
P
10
P
42
2011-04-01
2
26
1
EC202
P
18
P
60
2011-04-01
2
27
1
EC203
P
8
P
50
2011-04-01
2
28
1
EC204
P
10
P
40
2011-04-01
2
29
1
EC205
P
8
P
30
2011-04-01
2
30
1
EC206
P
20
P
50
2011-04-01
2
31
2
EC201
P
10
P
40
2011-04-01
2
32
2
EC202
P
12
P
45
2011-04-01
2
33
2
EC203
P
12
P
46
2011-04-01
2
34
2
EC204
P
20
P
40
2011-04-01
2
35
2
EC205
P
10
P
40
2011-04-01
2
36
2
EC206
P
10
P
48
2011-04-01
2
37
3
EC201
P
20
P
60
2011-04-01
2
38
3
EC202
P
18
P
70
2011-04-01
2
39
3
EC203
P
15
P
80
2011-04-01
2
40
3
EC204
P
18
P
78
2011-04-01
2
41
3
EC205
P
16
P
65
2011-04-01
2
42
3
EC206
P
10
P
30
2011-04-01
2
43
4
EC201
P
20
P
50
2011-04-01
2
44
4
EC202
P
14
P
10
2011-04-01
2
45
4
EC203
P
15
P
40
2011-04-01
2
46
4
EC204
P
20
P
46
2011-04-01
2
47
4
EC205
P
10
P
50
2011-04-01
2
48
4
EC206
P
8
P
40
2011-04-01
2
from this table I want take the semester wise result and after  that I want to take that result into new table  and I want take the rank also
how

Hey,
Just perform an INSERT AS SELECT and don't forget to add APPEND hint. Also, you can do it using parallelism so before that just enable DML parallel for the IAS. Below are the commands:
SQL> ALTER SESSION ENABLE PARALLEL DML;
SQL> INSERT /*+ APPEND */ INTO NEW_TABLE (SELECT * FROM TABLE_QUERY);
Regards.
caadecarvalho

Similar Messages

  • Need help in SQL Query: Update a row in a table & insert the same row into another table

    I want to update a row in a table say Table A and the updated row should be inserted into another table say Table B. I need to do it in a single SQL query and i don't want to do it in PL/SQL with triggers. And i tried with MERGE statement but its working with this scenario. (Note: I'm using Oracle Database 10g Enterprise Edition Release 10.2.0.1.0).
    Thanks in Advance.

    Using Sven's code as an example, you could save the updated row in a sql plus variable. (also untested):
    SQL> var v_id number
    update tableA  
    set colB='ABC' 
    where colC='XYZ' 
    returning id into :v_id;
    insert into table A_History (ID, colA, colB, ColC)  
    select id, ColA, ColB, ColC  
    from tableA  
    where id = :v_id;   

  • I have 67 email addresses I want to add to address book into a group, how do I do that

    I have 67 email addresses I want to add to address book into a group, how do I do that

    What version of the Mac OS are you running?

  • I want to import one imovie project into another one.  In other words, I have created a short sequence in iMovie 11 on one computer, and I want to import it into a project that I am working on, on another computer.

    I want to import one imovie project into another one.  In other words, I have created a short sequence in iMovie 11 on one computer, and I want to import it into a project that I am working on, on another computer.  I copied the project files onto a hard drive, and then connected that drive to the Mac that my main project is on, but when I select "import" the files are faint gray -meaning I can't select them.  Help!  I want to transfer a sequence of shots from one iMovie 11 project on one computer, into another iMovie 11 project on another computer.

    Tell me it ain't so!
    I wish I could.  The research you've done is correct.
    Wether you copy and paste or rebuild the Project from the other computer, you're going to need to get your Evnets copied from the other computer.
    The Prjoject files only contain pointer back to the original media.
    Matt

  • I want to insert a online journal into a keynote slide show.  How do I do this?

    I want to insert a online journal into a keynote slide show.  How do I do it?

    what do you mean by an online journal (a periodical )?
    create a link to the website and it will display on screen

  • HT204266 i want to view my office CCTV footage on my phone,could anyone please suggest an app for iphone 4s.

    i want to view my office CCTV footage on my phone,could anyone please suggest an app for iphone 4s.

    Ask the vendor for the CCTV system if they offer such an app.

  • I asked Firefox to remember a password when I first went to a secure website. Now I want to undo that. Can you tell me how,please? John

    Question
    I asked Firefox to remember a password when I first went to a secure website. Now I want to undo that. Can you tell me how,please? John

    You're welcome

  • I created a new adobe account. I want to convert a doc file into pdf. How to do that?

    HI,
    I created a new adobe account. I want to convert a doc file into pdf. How to do that?
    I have seen a Create pdf menu and under that Convert office files to pdf. But I can't click it, why?
    How to convert my doc file to pdf?

    Hello,
    if you create your doc files by the help of WORD, you could use a Microsoft add on (it depends of your WORD Version).
    Hans-Günter

  • Inserting results from select query into another table

    Hi: Is there a way to insert results returned from a SQL query into another table within the same SQL statement.
    For example
    SELECT a.SRCID,
    SUM(DECODE(a.CLASS_ID,91147,1,0)) BLOCK,
    SUM(DECODE(a.CLASS_ID,91126,1,0)) ALLOW,
    FROM EVENT_DATA a
    where
    a.class_id in (91147,91126)
    GROUP BY SRCID
    order by TOTAL DESC;The columns returned SRCID, BLOCK and ALLOW need to go into another table called AGGREGATE_COUNT. This table has fields SRCID, BLOCK and ALLOW. Or is the only way this can be done from outside of SQL like using perl or C.
    Thanks
    Ray

    INSERT INTO aggregate_count
         ( chart_id
         , srcid
         , block
         , allow
    SELECT 2234  chart_id
         , srcid
         , SUM(DECODE(class_id, 91147, 1, 0))
         , SUM(DECODE(class_id, 91126, 1, 0))
      FROM event_data
    WHERE class_id IN (91147, 91126)
    GROUP BY chart_id, srcid
    ORDER BY total DESC;

  • I have a mac book pro  OS 10.6.8.  I want to insert a .dmg file into a file i've copied to the MAC.  How do I do it?

    I have a mac book pro  OS 10.6.8.  I want to insert a .dmg file into a file i've copied to the MAC.  How do I do it?  Thanks

    Apple said that customers can still purchase a copy of Snow Leopard or Lion from its online store's telesales agents: 1-800-MY-APPLE (1-800-692-7753) or Customer Service and Sales Support at 1-800-676-2775. For Lion you'll get a redemptions code via e-mail and need to DL from the Mac App Store (requires SL 10.6.6+).

  • How to store query results into a table

    I want to store the query results to a table. Is there a way to automatically redirect output to a table without using a PL/SQL script.

    Run the following step only once unless you want to create the tabX everytime
    Create tabX as select x,y,z from tabY;
    Next time when you want to store the new results, run the following statement
    Insert into tabX select x,y,z from tabY;

  • Query Help - Add a column that doesn't exist in table

    Hello,
    i have an application that runs a query in code off of a main query, and that query in code requires a column that does not exist in the main query that I created. how do I go about adding a column to a query that does not actually exist in the table or database that I am querying?
    For Example:
    SELECT PROJ_ID, PROJECT_NAME
    FROM PROJECT
    I need a column called "DELETE_SESSION_ID" and this database/table does not contain that column anywhere. Is it best to create a view that creates the column somehow? I would prefer not having to create the column inside of the table. Any ideas are greatly appreciated.
    Thanks,
    Jeff

    user10249614 wrote:
    Hello,
    i have an application that runs a query in code off of a main query, and that query in code requires a column that does not exist in the main query that I created. how do I go about adding a column to a query that does not actually exist in the table or database that I am querying?
    For Example:
    SELECT PROJ_ID, PROJECT_NAME
    FROM PROJECT
    I need a column called "DELETE_SESSION_ID" and this database/table does not contain that column anywhere. Is it best to create a view that creates the column somehow? I would prefer not having to create the column inside of the table. Any ideas are greatly appreciated.
    Thanks,
    JeffYou need a way to obtain the value you need - a function to generate it, perhaps. A view using such a function or aquiring the value by other means should work well.
    Pipelined functions work well to generate values that aren't in the database at run time - if your version of Oracle supports them

  • How to use Power Query to load data from a single source into multiple tables

    Hi all,
    I have a requirement to load my data into three different data models using Power Query. Is that possible?
    My source is a SharePoint survey list, with similar questions like:
    1) Course lecturer - John Doe
    1a) The course was useful (rate 1 to 5)
    1b) The lecturer displayed good knowledge of topic (rate 1 to 5)
    2) Course Lecturer - Mary Brown
    2a) The course was useful (rate 1 to 5)
    2b) The lecturer displayed good knowledge of topic (rate 1 to 5)
    I would like to split the data into separate data models (one for John Doe; another for Mary Brown), so that I can compare the different lecturers. Other than running separate surveys for each of them, I thought of using Power Query to transform the data.
    Is it possible?
    Thanks.
    Regards
    GM

    Yes, this is possible.
    Start with a single query that returns you the data for all lecturers.
    Right-click on the "all lecturers" query in the queries pane, and choose Reference, once for each lecturer. This will create a query for each lecturer.
    Open the query for each lecturer and filter the data so that only that lecturer's results are visible.
    Click "Close & Load To..." for each lecturer's query  to load the data into the data model. This will create a data model table for each lecturer.
    If your question is more about how to transform such a survey list into a table that can be easily filtered, please provide an example of how the list shows up in Power Query.
    Ehren

  • How to Query from table and insert into another table.

    Hi
    I am using the following query in VO and all the columns are attached to EO ( table name emp_temp)
    select a.npw_number, a.person_id,b.assignment_id,a.title,a.last_name,a.first_name,a.date_of_birth,a.sex,
    b.organization_name,b.organization_id,b.job_id,b.job_name,b.position_id,b.position_name,b.supervisor_id,
    b.supervisor_name,b.location_id,b.effective_start_date,b.effective_end_date
    from per_all_people_f a,per_assignments_v b
    where a.person_id=b.person_id
    and a.npw_number=:1
    I can query the data in screen. I need into insert the data into the emp_temp.
    I don't know how to do this . Please help me.
    Thanks
    Subra

    You can create a VO based on EO on emp_temp table.....
    And u have attached a Different VO on the page... Right...
    Now what u can do is....once u click on apply....
    u can set the each attributes of EO based VO explicitly via code, from the values of second VO.... and then commit.....
    Perhaps this might help...

  • Multiple BI Query Results into one Table

    Hi All
    Can I embed Multiple queries into one table using VC?
    I have data in different BI sources(Info Areas) like sales and distribution,Shipments etc. Can I write any universal query to retrive data from multiple sources?(If any???)

    Hi Jan Pasha,
    My model contains two BW queries which uses UNION and sent result to one table.
    I tried using UNION also but when I use it I am able to see no records to select in result table.
    I donot have any coloums in common. Is it pre-requisite for using UNION?

Maybe you are looking for

  • Payroll's Error message: Posting balance is not cleared (period 02 / 2014 a)

    Dear Experts, I am new to SAP HR. And would like get help for this issue After EHP 6 upgarde, when process the payroll, system prompt this error message: Posting balance is not cleared (period 02 / 2014 a). Checked the RT and it showed that the tax e

  • Output type not appearing in interco. document - Req. 905 not fulfilled

    Hi everyone. WHen i am creating my intercompany document, no output type is appearing. I have maintained VV31 condition records as well as WE20 settings. Also i have set output device to LOCL .When i click on Analysis output , it gives me RD00     50

  • Ink consumption while idle !

    I worry about the ink consumption of my C5380 while the printer is idle. I use that hp printer seldomly to print a few professional pages (not images, but documents with almost no color). And, again this morning, I get a "low ink" warning on the Blac

  • DG4ODBC 11.2 to MySQL lost RPC connection to heterogeneous remote agent

    Hi, I'm running into an issue when executing a procedure in Oracle 11.2 which inserts into a table in a MySQL database over a database link. MOS suggested it is an issue with my unixODBC driver. MOS pointed me to a resolution, but I'm not sure how to

  • How to parse SOAP XML output and load to oracle9i table

    Below is the SOAP output response and I need to load the data into oracle 9i database tables. I am able to parse regular XML without namespaces but unable to parse the data with namespaces. I would need help in parsing this XML. <s:Envelope xmlns:s="