How to Insert-Select and Updade base table
Hi All,
How is the best way to do this?
I have a table A that has 1million rows.
I need to Insert-Select into table B from a Group by on table A,
and Update all rows in table A that were used into Insert with a flag.
(select a hundred from A and insert 10 thousands into B)
What to do?
1-Update table A with flag before Insert-Select?
2-Insert-Select group by into table B, before Update?
3-Another way?
Thanks in advance,
Edson
Either way. But you may find that updating the source flag first and then using that flag as part of your where clause when extracting rows to put in the destination table is a bit faster.
In any case, you will commit only once after all of the work is done.
Similar Messages
-
How do I select and email a whole lot of photos on my iPad from my iPad emails? It seems I have to go into Email and then insert one photo at a time? Isn't there a way to select all in the photos and then email the batch.?
Actually, you can email up to 5 at a time from the Photos app. Select any more and the email share option will not appear.
If you explain why you need to email large numbers of photos, we might be able to offer an alternative. -
How to insert select columns from one internal table to another
Hi,
How to insert select columns from one internal table to another based on condition as we do from a standart table to internal table.
regards,
SriramHi,
If your question is for copying data from 1 int table to other ;
we can use
APPEND LINES OF it_1 TO it_2.
or if they have different columns then:
loop at it_1 into wa_it1.
move wa_it1-data to wa_it2-d1.
apped wa_it2 to it_2.
clear wa_it2.
endloop.
thnxz -
Hello,
please help me to understand how the macros work. I am facing database inconsistency. The CRM-system retrieves a GUID of an opportunity’s item and checks its existence. However, this GUID (here it is es_info-ref_object) does not exist. As result, an exception is triggered.
I am trying to figure out which data base table is responsible for the inconsistent data. Instead of SELECT statement, I see in the debugger that a macro retrieves the “guilty” entry .
macro_execute macro_msg_data_read_rea.
My Question: How can I find a data base table containing a GUID, which is result of the macro’s execution?
Thanks a lot
AndrejWhen you save a PDF out of Distiller it doesn't just have different options, it's an entirely different program. It doesn't do things the same way, so it can't have the same options. Saving from Distiller is in many ways better, expecially in that transparency isn't flattened.
What specific options are you looking for? -
How to insert into more than one table at a time also..
hi,
i am a newbee.
how to insert into more than one table at a time
also
how to get a autoincremented value of an id say transactionid for a particular accountid.
pls assume table as
transactionid accountid
101 50
102 30
103 50
104 35
i want 102 for accountid 30 and 103 for accountid 50.
thank u@blushadow,
You can only insert into one table at a time. Take a look here :
Re: insert into 2 tables
@Raja,
I want how to extract the last incremented value not to insert.Also, I don't understand your thread title... which was "how to insert into more than one table at a time also.. "
Insert, extract... ? Can you clarify your job ?
Nicolas. -
JTable: HOW TO INSERT ROWS AND DATA?
I have one JFrame on screen and inside of this i have a JTable, the question is how to insert rows and data into the JTable?
[http://java.sun.com/docs/books/tutorial/uiswing/components/table.html]
In future, please post Swing questions to the [Swing Forum.|http://forums.sun.com/forum.jspa?forumID=57]
In short, your TableModel is probably a DefaultTableModel . Study its API. -
How to insert data into the mysql table by giving as a text file
Hi,
Any one know's how to insert data into the mysql table by giving as a text file as the input in JSP.Please respond ASAP.
Thanks:)At least you can try StringTokenizer to parse your text files. Or download a text JDBC driver to parse your files, for instance, HXTT Text(www.hxtt.net) or StelsCSV(www.csv-jdbc.com).
-
How do you select and move more than one bookmark at a time?
Shift+Click does not select multiple items that are next to one another in a list because the items open in firefox before this happens.Use the bookmarks library. You may use Shift +Click, and Ctrl + Click to create groupings of selected bookmarks to drag and drop.
* one method of opening the bookmarks library is keyboard shortcut <br /> Ctrl+Shift+B (Windows)
*see also [[How to use bookmarks to save and organize your favorite websites]]
*and [[Use bookmark folders to organize your bookmarks]] -
How can I select and delete the fill color (white background) of a live trace (B&W) with in an action set?
Illustrator CS4 in windows XP.Maybe Li[ve trace] is not t]he way[ to go
I have some suggestion one leave it as is and use a blending mode of multiply to give it a color background like this
leave it as is make it a grayscale tiff import int Illustrator and color it it in Illustrator like this
Or trace over it with the brush tool aand then give it a color ground.
Or do the original over and do a cleaner job with no tone or a minimum of tone. Then Live trace. -
How to insert a record in ROOSPRMSC table? (accidentally deleted)
Calling an InfoPackage in BW causes short dump, while fixing the short dump issue, accidentally
deleted the "ROOSPRMSC" table entries.
Could you tell me how to insert a record in "ROOSPRMSC" table???Hi Senthil,
Regards,
Phani Raj Kallur
Message was edited by: Phani Raj Kallur -
How do I select and de or unselect groups of songs in my library
How do I select and de or unselect groups of songs in my library
In your iTunes Library?
You can click on the songs individually while you are holding down the Command.
Or
If you hold down Shift and click on the first one, and while continuing to hold Shift you click on the last one. Everything in between will be highlighted. -
How can I select columns from a table EMP, using Select statement?.
Hi Friends,
How can I select columns from a table EMP?.
I want to select columns of EMP table, using select statement.
Please reply me urgently.
ShahzadSomething like this:
scott@DBA> select empno,ename,job from emp;
EMPNO ENAME JOB
7369 SMITH CLERK
7499 ALLEN SALESMAN
7521 WARD SALESMAN
7566 JONES MANAGER
7654 MARTIN SALESMAN
7698 BLAKE MANAGER
7782 CLARK MANAGER
7788 SCOTT ANALYST
7839 KING PRESIDENT
7844 TURNER SALESMAN
7876 ADAMS CLERK
7900 JAMES CLERK
7902 FORD ANALYST
7934 MILLER CLERK
14 rows selected.Check the documentation:
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_10002.htm#sthref9697
Message was edited by:
Delfino Nunez -
How will use Select-Options in Read table Concept.
Hi All,
How will use Select-Options in Read table. For example,
Select-Options : test for bseg-prctr.
Select * from bseg into table ITAB.
Read table ITAB with key prctr in test.
Last line is showing error. If any way to read ITAB as conditions given per select options.
Thankx Advance,,,HI,
you cannot use " IN " with read statement , read statement is used as:
READ TABLE it_collect ASSIGNING <fs_collect>
WITH KEY rbpl = <fs_wkdet>-arbpl
ufnr = <fs_wkdet>-aufnr.
anyways you can use loop at statement before read to use " into " statement as:
LOOP AT it_master INTO l_master
WHERE werks = l_werks
hope it will help you
regards
rahul
Edited by: RAHUL SHARMA on Dec 30, 2008 9:14 AM -
How to insert Legacy data into QP_RLTD_MODIFIERS table?
How to insert Legacy data into QP_RLTD_MODIFIERS table in R12 instance.
I would use the API QP_Modifiers_PUB.Process_Modifiers for pushing legacy pricing data into R12. QP_RLTD_MODIFIERS is only used for certain types of discounts (in my prod environnment, only promos have data in this table).
-
How to get selected/focused cell from table, and action on clicked
Hello Web Dynpro Community!
i have a view with a table, (id "Table_0");
table is 3x3 size, as celleditors i used inputfields; (standard binding to context with string atributes)
below table i have textarea.
when i select any cell in table i want to add that cell coords to textarea (col and row)
i know that i should use onLeadSelect action, but i dont know exacly how. or to be precise.. how to access to ID and row variables in that action.
the other problem is.. that onLeadSelect seems to work only when i change lead not the cell in same row.. so prabobly there is better way to do that..
any ideas?
Looking to hear from You.
EDIT:
Now i have following problem:
i have a table 3x3 with one column as dropdownbykey box and 2 as TableSingleMarkableCell (and inputFields As editors).
it works as i wanted:
so when i click on one of those input cells, insert vale AND click enter then the action onEnter( for inputfield) is fired... i can get the coords of that cell..
problem is.. that i want to get the coords before i click enter.. just when i click in cell.
i tried to use onAction event for column.. but it doesnt work for TableSingleMArkableCells (but it works for ddk column correctly).
so there is any way to do that?
ie:
below table i have inputfield (called value).
when i click on cell (and DO NOT press enter) i want to see the cell value in inputfield value.
future (and target need) is that i need to show some additional text for specific Cell. (i have an Object with 2 strings attributes, one i want to show in cell, and one in inputfield when cell is clicked).
M.
Edited by: Michal Rowinski on Jan 16, 2008 9:51 AMYou can use cell variant for your requirement . Go through the below link
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0310fd2-f40d-2a10-b288-bcbe0810a961
Regards,
Nethaji
Maybe you are looking for
-
I was told to uninstall my photoshop cs2. My macbook pro went in for repair and I had to restore it from a backup, after which I got this error message when trying to use photoshop: licensing for this product has stopped working: restart computer and
-
How to set max. number of rows in a table?
Hi, I'm working on a SCADA interface. In this application there are different tables with vertical scroll bar. I prefer to make visible only the initialized rows (I've initialized 40 blank rows of a table with a string array). Since the window not co
-
Unable to install Acrobat XI Pro
I recently suffered a catastrophic computer problem requiring that I install a fresh copy of Windows 8 and then reinstall all my software. I subscribe to CS and used the download manager to install the applications I use. All but one - Acrobat XI Pro
-
I've not had any major problems with my 30g photo over the past 5 months, but am all of a sudden having some major issues. First, I plugged in my ipod yesterday to transfer some songs over, but itunes popped up with a must restore message, which is a
-
Problem using application client for local stateful session bean
Hi, I have deployed a local stateful session bean in Sun J2EE 1.4 application server. On running the applclient for the stateful session bean application client i get the following error: Warning: ACC006: No application client descriptor defined for: