What is the difference between updating a table specifying a specific partition compare to not specifying
Hello,
What is the difference when updating a table specifying a specific partition compare to not specifying a specific partition?
Does specifing a specific partition while doing an update only update values within that specific partition?
For example:
update tab_abc partition (nov_2013)
set col_abc = 'ABC';
vs.
update tab_abc
set col_abc='ABC';
Thank you.
Yes, but better to do this:
update tab_abc
set col_abc = 'ABC'
where date_key >= to_date('01-NOV-2013','DD-MON-YYYY')
and date_key < to_date('01-DEC-2013','DD-MON-YYYY')
(where date_key is the column your table is partitioned on)
Now your code is totally unaware that the table is partitioned but it can still use partition pruning.
And your code won't break if the partitioning strategy changes (which it certainly can).
Similar Messages
-
What is the difference between RT(Result table)& CRT(Cumilative result tabl
what is the difference between RT(Result table)& CRT(Cumilative result table)
Hi,
RT Contains all the results of the payroll of the current
period, i.e, ur current months Basic, HRA, CLA etc. Where as in CRT contains
all the cummulated amount of the Basic, HRA, CLA, i.e, lets us assume that
ur basic per month is 5000/- then in RT table u will have Basic amount for
the month of September will be 5000/- and in CRT for the month of September
u will have Basic amount as 30,000/- ie, 5000 * 7. And also CRT has Yearly
amount and also Current month amount. you can check this with the Tcode
pc00_m40_clsrt
AWARD POINTS IF USEFUL -
What is the difference between sheets and tables?
Seriously. I've used Numbers for many projects, but the difference just isn't apparant to me?
Hi Michael,
Sounds like it's time to crack open the manual and spend a little quality time with Chapter 1.
Apple provides a couple of excellent tools for understanding and using Numbers, the Numbers '09 User Guide and the iWork Formulas and Functions User Guide. Both are fully searchable PDF documents, and both are available for download via the Help menu in Numbers.
I'd recommend reading at least the first three chapters of the Numbers Guide (about 60 pages in all), then dipping into the rest as you need it.
The F&F guide is a useful reference whn you're writing formulas, or when you're trying to figure out what's going on in the formulas in a template produced by someone else.
Regards,
Barry
PS: The information regarding Sheets, Tables, etc. may be found in the article The Numbers Window, starting on the second page of Chapter 1, Numbers Tools and Techniques. -
I get confused about which one should be used. Thanks!
Hello Ashley,
The command 'update db cfg using <parameter> <value>' is used to update the database manager configuration. To see the current values you can use
'db2 get db for <sid>'
where <sid> is the databse name.
To see further details regarding the on disk and in memory settings you need to first connect tot he database using 'db2 connect to <sid> user <xxx> using <password>' then issue 'db2 get db cfg for <sid> show detail'
The command 'db2set' is used to update, view or remove DB2 registry (profile) variables.
Here are some links with additional details.
UPDATE DATABASE CONFIGURATION command:
http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/index.jsp?topic=/com.ibm.db2.luw.admin.cmd.doc/doc/r0001987.html
db2set - DB2 profile registry command:
http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/index.jsp?topic=/com.ibm.db2.luw.admin.cmd.doc/doc/r0002025.html
Best Regards,
Adam Wilson
SAP Development Support -
What is the difference between straucture & table
what is the difference between straucture & table
Hi,
Tables
Represent the Database Tables where data actually resides.
Tables can be defined independently of the database in the ABAP Dictionary.
The fields of the table are defined with their (database-independent) ABAP/4 data types and lengths.
Structures
Are record declarations that do not correspond to a Database Table.
Just like user-defined data type.
Defined like a table and can then be addressed from ABAP/4 programs.
Structures contain data only during the runtime of a program.
In this link, you can find some useful coding samples.
http://www.sapdevelopment.co.uk/java/jco/jcohome.htm
http://www.henrikfrank.dk/abapexamples/Java/sapjava_getcompanycode_list.htm
Following are the weblogs about JCO
/people/gregor.wolf3/blog/2004/09/23/from-function-module-to-jco-application--part-1-of-3
/people/gregor.wolf3/blog/2004/09/24/from-function-module-to-jco-application--part-2-of-3
/people/gregor.wolf3/blog/2004/09/25/from-function-module-to-jco-application--part-3-of-3
/people/gregor.wolf3/blog/2004/08/26/setup-and-test-sap-java-connector-outbound-connection
For Tables and Structures refer this.
http://help.sap.com/saphelp_40b/helpdata/en/4f/991f82446d11d189700000e8322d00/applet.htm
For RFC related information,check this.
http://help.sap.com/printdocu/core/Print46c/en/Data/Index_en.htm
http://www.sap-img.com/abap-function.htm -
What is the difference between the two update statements
Hi Everyone
Along with the emp table in scott kindly insert the to ins statement into emp.
Insert into EMP
(EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO)
Values
(8000, 'JAMES', 'CLERK', 7698, sysdate,
1000, 10, 30);
Insert into EMP
(EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO)
Values
(8001, 'JAMES', 'CLERK', 7698, sysdate,
1000, 10, 30);
Consider the below two update statements.
1) update emp a
set ename=(select loc
from dept b
where a.deptno=b.deptno)
where exists(select loc
from dept b
where a.deptno=b.deptno)
2) update emp a
set ename=(select loc
from dept b
where a.deptno=b.deptno)
What is the difference between the 1st and 2nd update statement? what is the use of exists clause in the first update statement ? Can u suggest in what case will the two update statements provide different results.
Thanks in advanceSecond one updates all records in emp. If there is no record in dept then ename will be updated to null.
The first one only updates records in emp where a record in dept exists. It does not matter whether loc is non-null in dept or not. In an EXISTS query it doesn't matter if you do SELECT *, SELECT LOC, SELECT 1, SELECT NULL - Oracle just checks for existence.
So most often an update like the first one is meant to improve performance by only updating those emp records that are needed. Usually that is a good idea.
For this very specific case where all employees do belong to a department, all records in emp will be updated anyway, so for this specific case it actually makes worse performance because it does work to make an unnecessary check.
Normally the EXISTS query is good for performance, but always figure out if they are needed first ;-) -
What is the difference between qued delta update and serialized delta upda
what is the difference between qued delta update and serialized delta update?
Hi Ks Reddy,
Queued Delta:
In case of Queued delta LUW's are posted to Extractor Queue (LBWQ), by scheduling the V3 job we move the documents from Extractor queue to Delta Queue(i.e. RSA7) and we extract the LUW's from Delta Queue to BW side by running Delta Loads. Generally we prefer Queued Delta as it maintain the Extractor Log which us to handle the LUW's which are missed.
Direct Delta:
In case of Direct Delta LUW's are directly posted to Delta Queue(i.e. RSA7) and we extract the LUW's from Delta Queue to BW side by running Delta Loads. If we use Direct Delta it degrades the OLTP system performance because when LUW's are directly posted to Delta Queue (RSA7) the application is kept waiting untill all the enhancement code is executed.
Non-serialized V3 Update:With this update mode, the extraction data for the application considered is written as before into the update tables with the help of a V3 update module. They are kept there as long as the data is selected through an updating collective run and are processed. However, in contrast to the current default settings (serialized V3 update), the data in the updating collective run are thereby read without regard to sequence from the update tables and are transferred to the BW delta queue.
https://websmp102.sap-ag.de/~sapdownload/011000358700007535452002E/HOWTOCREATEGENERICDELTA.PDF (need id)
http://help.sap.com/saphelp_bw33/helpdata/en/3f/548c9ec754ee4d90188a4f108e0121/frameset.htm
Business Intelligence Performance Tuning [original link is broken]
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cccad390-0201-0010-5093-fd9ec8157802
How to load data
/people/sap.user72/blog/2004/12/16/logistic-cockpit-delta-mechanism--episode-one-v3-update-the-145serializer146
/people/sap.user72/blog/2004/12/23/logistic-cockpit-delta-mechanism--episode-two-v3-update-when-some-problems-can-occur
/people/sap.user72/blog/2005/01/19/logistic-cockpit-delta-mechanism--episode-three-the-new-update-methods
Delta Types and methods;�
Hope this helps.
****Assign Points if Helpful*****
Regards,
Ravikanth -
Hi All,
Could you explain me what is the difference between payment_method_code & payment_method_lookup_code in ap_checks_all table.
Is both the column store same values ?
Regards,
UvaHi Prathima,
In tech lingo:
Payment_num is the same as AP_INVOICE_PAYMENTS_ALL.payment num.
Check_number is same as check_number in AP_CHECKS_ALL -> which also has checkrun_name used in payment batch You can get to AP_CHECKS_ALL by using check_id in AP_INVOICE_PAYMENTS_ALL
Raman. -
In jdbc adapter what is the difference between insert and update insert
in jdbc adapter what is the difference between insert and update insert
Edited by: katru vijay on Mar 22, 2010 7:43 AMPlease refer to this Link [Document Formats for the Receiver JDBC Adapter|http://help.sap.com/saphelp_nw04/Helpdata/EN/22/b4d13b633f7748b4d34f3191529946/frameset.htm]
Hope this helps.
Regards,
Chandravadan -
Hi guru's what is the difference between table and temlate in smartforms
hi guru's what is the difference between table and temlate in smartforms
Hi Vasu,
Template is used for proper allignment of data which table is used for displaying multiple data.
We can say Template is for static data and Table is for dynamic data.
Suppose we have a requirement in which we have to allign the customer address in such a way as shown below:-
Name- Vasu Company- WIPRO Location- Chennai
Desig- S/W Native - Mumbai
Then for proper allighnment we can create a template and split that into 3 columns and 2 rows and create text elements for each cell display a proper allighned data at the output.
When we include a template inside a loop it gives the same property as a table.
When we have mutiple data which is to be extended to the next page like when we display all employee details in a company we use table.
Table has 3 sections , HEADER, ITEM ,FOOTER
The header secntion will be executed once and it will loop at the item level. at the end footer will be executed.
Hope this gives u some idea..
<b>Please reward if useful</b>
Regards,
sunil kairam. -
What is the difference between infocube and fact table?
hi bw gurus,
what is the difference between infocube and fact table?
thanks in advance
byeFact table contains only KeyFigures and foreign keys of dim ids.
Infocube conatin fact table sorrounded by dimension tables.dimension table contain primary keys of dim ids and SIDs which link to master data.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6ce7b0a4-0b01-0010-52ac-a6e813c35a84 -
What is the difference between standard,sorted and hash table
<b>can anyone say what is the difference between standard,sorted and hash tabl</b>
Hi,
Standard Tables:
Standard tables have a linear index. You can access them using either the index or the key. If you use the key, the response time is in linear relationship to the number of table entries. The key of a standard table is always non-unique, and you may not include any specification for the uniqueness in the table definition.
This table type is particularly appropriate if you want to address individual table entries using the index. This is the quickest way to access table entries. To fill a standard table, append lines using the (APPEND) statement. You should read, modify and delete lines by referring to the index (INDEX option with the relevant ABAP command). The response time for accessing a standard table is in linear relation to the number of table entries. If you need to use key access, standard tables are appropriate if you can fill and process the table in separate steps. For example, you can fill a standard table by appending records and then sort it. If you then use key access with the binary search option (BINARY), the response time is in logarithmic relation to
the number of table entries.
Sorted Tables:
Sorted tables are always saved correctly sorted by key. They also have a linear key, and, like standard tables, you can access them using either the table index or the key. When you use the key, the response time is in logarithmic relationship to the number of table entries, since the system uses a binary search. The key of a sorted table can be either unique, or non-unique, and you must specify either UNIQUE or NON-UNIQUE in the table definition. Standard tables and sorted tables both belong to the generic group index tables.
This table type is particularly suitable if you want the table to be sorted while you are still adding entries to it. You fill the table using the (INSERT) statement, according to the sort sequence defined in the table key. Table entries that do not fit are recognised before they are inserted. The response time for access using the key is in logarithmic relation to the number of
table entries, since the system automatically uses a binary search. Sorted tables are appropriate for partially sequential processing in a LOOP, as long as the WHERE condition contains the beginning of the table key.
Hashed Tables:
Hashes tables have no internal linear index. You can only access hashed tables by specifying the key. The response time is constant, regardless of the number of table entries, since the search uses a hash algorithm. The key of a hashed table must be unique, and you must specify UNIQUE in the table definition.
This table type is particularly suitable if you want mainly to use key access for table entries. You cannot access hashed tables using the index. When you use key access, the response time remains constant, regardless of the number of table entries. As with database tables, the key of a hashed table is always unique. Hashed tables are therefore a useful way of constructing and
using internal tables that are similar to database tables.
Regards,
Ferry Lianto -
What's the difference between firmware update 1.5 and 1.5.1?
i got the 1.5 update, but the newest one (1.5.1) does not show up in the SU which i am not concerned with... but what is the difference between the two versions of the update?
You're welcome. I have two other posts on the subject that should help.
They simply fixed the updater in 1.5.1 to include an update path for the ROM shipped with the models described above, of which my computer is one. Mine got the later update, so you and I essentially have the same ROM. I got fewer fixes since my ROM was slightly newer than yours to begin with.
Nate -
What is the difference between Table & Tablespace Fragmentation
What is the difference between Table Fragmentation & Tablespace Fragmentation.
What causes Table Fragmentation and what cause Tablespace Fragmentation.
How can we avoid Table Fragmentation & Tablespace Fragmentation.
How can we fix already Fragmented Tables & Fragmented Tablespaces
Thanks
NaveenUnless you are using an exceptionally old version of Oracle or are still using dictionary managed tablespaces or are using some interesting definitions of "fragmentation", fragmentation is practically impossible in Oracle.
Justin -
What is the difference between READ TABLE ITAB WITH KEY and TABLE KEY
Hi Experts,
what is the difference between
READ TABLE <ITAB> WITH KEY <K1> = <C1>
<Kn> = <Cn> .
and
READ TABLE <ITAB> WITH TABLE KEY <K1> = <C1>
<Kn> = <Cn> .
Thanks
Akash.Hi akashdeep,
Nice question. I also tried to find out, but no much success. My opinion is that for practical purposes there is no difference.
It may have difference in case of searching, especially sorted tables. (binary search or normal linear search).
Case1: If our table is sorted table with defined key fields, and we give WITH TABLE KEY, then faster binary search is used.
Case2 : If our table is sorted table with defined key fields, and we give WITH KEY, (and no field contained in the keys), then normal linear search is used.
regards,
amit m.
Maybe you are looking for
-
Thunderbird stalls on win 8.1
I'm running Win 8.1 and T'bird 24.4 T'bird stalls on every activity...accessing new mail, deleting/moving/sending messages, even opening new mail. The stall usually lasts for 30 seconds at a time. I have reinstalled the program, removed the anti-viru
-
My iPhone is set up to sync with my outlook calendar but none of the appointments show up on phone. All other Outlook items sync fun but my appoints are not on my calendar. Help please!! Thanks
-
Hi All, I am new to this forum as well as new to SUN. I tried to boot a Sun Blade 100. The message that appears on the screen is Keyboard not found. use ttya Input and Output. I have only a normal MS Keyboard which cannot be connected to SUN. Do we n
-
Delete or change posting period
hello We have a customer which was purchased by a large corporation. Before the purchase, they created their calendar and Fiscal year according to the calendar year: Jan 1st to Dec 31st. After the purchase, they need to run their Fiscal year from Jul
-
Not able to download and install iOS 7.0.4 on iPhone, iPad or Mac. Please advise!