In which case the data should go one partition go to another?

Hi All,
My db is 11.2, Exadata machine.
I encountered the same problem here. When I used  'where column=1', I got the result as 1 and 2
That is I find some data should belong to one subpartition appear in another subpartition.
Partition and subpartitions looks like:
PARTITION BY RANGE ("SRCE_SYS_ID")
  SUBPARTITION BY LIST ("SALES_DATE")
(PARTITION "3200_CD"  VALUES LESS THAN (3201)
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
  STORAGE(
  BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  TABLESPACE "POS01A" COMPRESS FOR OLTP
  SUBPARTITION "1359_CD_28MAR2012"  VALUES (TO_DATE(' 2012-03-28 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
  TABLESPACE "POS01A" COMPRESS FOR OLTP ,
  SUBPARTITION "1359_CD_29MAR2012"  VALUES (TO_DATE(' 2012-03-29 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
  TABLESPACE "POS01A" COMPRESS FOR OLTP ,
  SUBPARTITION "1359_CD_30MAR2012"  VALUES (TO_DATE(' 2012-03-30 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
)If I issue
SELECT count(*)
FROM ADWG_GPOS.gpos_cd_fads
WHERE gpos_cd_fads.srce_sys_id = 3200
AND to_char(sales_date,'dd/mm/yyyy')='28/03/2012'The result is 10000.
If I issue
SELECT count(*)
FROM ADWG_GPOS.gpos_cd_fads
WHERE gpos_cd_fads.srce_sys_id = 3200
AND sales_date = to_date('28/03/2012','dd/mm/yyyy')It returns 5000.(correct result)
After investigating, I find some data with sales_date 28/03/2012 go to partition 1359_CD_30MAR2012.
Can someone help me understand why this happend?
Best regards,
Leon
Edited by: user12064076 on Apr 5, 2012 7:17 PM

>
After investigating, I find some data with sales_date 28/03/2012 go to partition 1359_CD_30MAR2012.
>
Please fix the errors in your posted code and question.
1. You only show SELECT queries so no data with sales_date 28/03/2012 can go anywhere. Clarify what your statement about data going somewhere means.
2. You only show one partition range for SRCE_SYS_ID < 1314 so there is no partition shown for ID values of 3200 meaning if you have such a partition you did not show it - meaning you did not post the DDL for the table you are actually using. If you had a query for values of 3200 would not return any rows since there is no partition the data could be in.
3. AND to_char(sales_date,'dd/mm/yyyy')='28/03/2012' - this is basically equivalent to a functional index on 'sales_date' so partition pruning will not happen. For Oracle to prune partitions it needs to know AT PARSE TIME that any partition it 'prunes' cannot possibly contain needed data. It determines which partitions need to be accessed when it parses the query and evaluates it - not when it executes. When you use a function like in this example it cannot determine with certainty which partitions are not needed so will do a full partition scan.

Similar Messages

  • BSEC: in which case the financial documents are stored in it?

    Hi All,
    colud anyone in which case the financial documents are stored in the table BSEC?
    Thanks

    HI Rossi,
    In account Group Creation once check box is there, you need to tick that check box. then only it becomes one time vendor account group, it means that one time vendors are account group specific.
    Please award the point if it is help full.
    Regards,
    Sam.

  • From which tables the data is coming in to transaction fields, how to find?

    Hi abapers,
    I am new to abap,
    I have some data in one transaction.
    I want to know that one particular record in a field from which table the data is coming, how do i know?
    How to find that for the transaction is haveing header and item tables?
    How to find that what are tables used for that transaction?
    by presseing f1 on a field we can find table name or structure name along with field name of that particular field?
    If structrure means how to find that field from which table it is coming?
    I  found table name for some of the fields like this by pressing f1,double clicking on structure name?
    but some fields in another transaction does not showing the table names only structure it is showing?
    Moderator Message: Basic Question. Please search.
    Edited by: kishan P on Nov 13, 2010 3:20 PM

    hi ,
    you can  do that by Transation st05
    where you have to 1) activate trace  ,
      2) execute transaction  
    3) deactivate trace after transaction complete 
    4) display trace 
    there you can find all  step by step flow from where data has been retirved and tables also  .
    if you dont no take help from Basis  People  .
    Regards
    Deepak.

  • Delete the data content for one InfoObject in processchain

    Hi Guys,
    We have requirement to delete the data content for one InfoObject in processchain(daily) .We made this infoObject as InfoProvider.
    Could you please tell me is there any function module or abap program or any other alternative to do this and which can be added to processchain.
    We made this infoObject as InfoProvider.
    Thanks
    Prasanna

    just use the RSPC-maintenance screen and look for "deletion of requests from PSA" or something like that.
    Add it in the Processchain, run it...c'est tout.

  • When I import a text file(comma separated )into a numbers spread sheet all the data goes into one column. Why does the text not go into separate columns based on the commas.

    When I import a text file(comma separated) into a numbers spreadsheet all the data goes into one column instead of individual columns based on the comma separators.  Excel allows you to do this during the import..  Is there a way to accomplish this in numbers without opening it in Excel and the importing into Numbers.

    Your user info says iPad. This is the OS X Numbers forum. Assuming you are using OS X… Be sure the file is named with a .csv suffix.
    (I don't have an iPad, so I don't know the iOS answer.)

  • My iPhone says "o death" where the date should be on the lock screen, why is it doing this and how do I get the date back?

    My iPhone says "o death" where the date should be on the lock screen, why is it doing this and how do I get the date back?

    I tried powering off and on and it went away, but I can't tell if it's been broken into since everything works fine (I'm using it now) is there a test to see if it's been broken into?
    Thanks for all your replies!

  • To Get List of Tables from Database which has the data 'AAAA' - T-SQL Query

    Hi,
    I have a database "Adventureworks", I need to get list of tables, which has the data 'AAAA' in their rows.
    Is there any optimised or simple way to do this task?
    Any T-SQL Query Available
    --- Thanks in advance..

    You can refer the same below URL provided by Praveen:
    https://gallery.technet.microsoft.com/scriptcenter/c0c57332-8624-48c0-b4c3-5b31fe641c58
    It has the SQL SP - "SP_SearchTables". You can pass parameters the way you want and get the expected output.
    -- Search for 'bike' instead of 'AAAA'
    Use AdventureWorks2012
    EXEC SP_SearchTables @Tablenames = '%', @SearchStr = '%bike%'
    -Vaibhav Chaudhari

  • Delete the records which have the Data values are NULL before load data to BPC model

    Hi Everyone,
    I am loading the data from flat file to BPC Model (10.0 Version).
    Source data (Flat file) looks like below:
    RP_Employee RPT_Currency Data
    Test                USD                   8
    Test1              USD
    Test2              USD                    6
    My user requirement is that to delete the records which have the Data values are NULL before load data to BPC model.
    So,Please let me know how can i meet to this requirement.
    I am thinking that,it is possible by using start routine BADi. If i am correct please let me know process like creation of class and BADi implementation.
    Thanks in advance!!

    Hi Nilanjan,
    Please see my source data below:
    Account      Client       Employee     Time                Data
    123              XYZ            Vishu            2014.01               300
    456                                                       2014.01
    789              ABC         Alexander      2014.02               200
    If you see the second record,
    If data value is ZULL,  then the Employee or another dimension is also NULL.
    So I want to delete second records.
    If it is Start routine please share the code and steps to do.
    Thanks in advance!!
    Regards,
    Viswanath

  • I have a Windows 7 laptop using I tunes 64 and all my music files are on an external disc. I rarely use I tunes and at one point moved all my files (including the music files) from one external disc to another without considering what affect this wou

    I have a Windows 7 laptop using I tunes 64 and all my music files are
    on an external disc. I rarely use I tunes and at one point moved all my files
    (including the music files) from one external disc to another without
    considering what affect this would have on the I tunes library. When I eventually
    attempted to use I tunes, every selected a song from the library resulted in a
    message stating that the file couldn't be located. After following some of the procedures
    explained in this community I was able to reconnect the library back to where
    the associated music files are presently stored. However, there are still 2
    problems that need to be corrected. 1) Every song file now has a duplicate. One
    file works and the other file will result in the same message stating that the
    file couldn't be located. Before there were 4,000 songs in the library, now
    there are 8,000 songs. I need to eliminate the 4,000 dead song files. 2) All
    the playlists are still associated with the dead song files which makes the
    playlists unusable. Can the playlists be reconnected to the usable files
    without manually having to recreate them? Thanks in advance for the help.
    sdkr

    So am I understanding correctly?
    You used your iPod as a hard drive (drag and drop) instead of having iTunes install the music?
    If you used drag and drop your choices are different than if you used iTunes to transfer.
    Good luck!

  • How to copy the Pricing conditions from one Distribution Channel to another

    Generally we use VK11 transaction to create conditional records .
    but I Need to Know whether is it Possible to copy the Pricing conditions from one Distribution Channel to another with same name and same internal Characteristics .
    Since we have around 70+ of Condition type with different parameter Sequence.So Instead of Going for BDC whether is there any standard Funct Modules/programs/BAPIs to do this?
    How to make a copy Condition types from One Distribution Channel to another.
    since SAP has already provided to copy conditions from Customer to customer.
    Likewise i need to know whether SAP is facilitating for these feature also.
    Iam Dubious in this issue.
    Hope Fully looking for the answers.
    Harish.N

    - IDOC_INPUT_COND_A (you can create IDOC, but also call directly)
    - call transaction / batch input (use transaction XK15, as used by LSMW)
    - use group of function modules RV_CONDITION_COPY, RV_CONDITION_SAVE, RV_CONDITION_RESET + commit.
    if you search SDN on 'RV_CONDITION_COPY' you'll find more info I believe.
    Someone mentioned BAPI_PRICE_CONDITIONS as well.

  • Which type of data should I choose in transfering the R/3 table to Sap BI 7

    Dear Experts,
    I am transfering the one ABAP TABLE with all the fields from sap r/3 to sap Bi 7.0 system.
    I went to sap r/3 system and by using SBIW I clicked on maintain generic data sources and I am in confusion , which type of data I should opt for transfering the R/3 table into BI system.
    a) Transactional
    b) Texts
    c) attributes.
    please explain me when to choose these 3 different options ?
    waiting for a reply from you experts...
    Thanks a lot

    Thanks but I want to tranfer a Complete table with all the fields into sap BI system, so how can I proceed ,bcse may be the table contails all the types of data ie., master data attributes , texts and as well as transaction data,
    I am in confusion ,please tell me the steps to transfer the table with all the fields( 72) in to sap system.
    it would be helpful if you can spend some time for my question.

  • SCCM 2012 R2 ,which are the roles should be installed on CAS and which are the roles should be installed on Primary

    Hi All
    Which are the roles in SCCM 2012 R2 ,which cannot be installed on CAS and which are the roles which can only be installed on CAS . and which are the roles which should be installed on both CAS and Primary.

    Here is the official list that describes where you can install the different roles:
    http://technet.microsoft.com/en-us/library/gg712282.aspx#Plan_Where_to_Install_Sites
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • How to split the data based on one column

    Dear All,
    I have the table data like this.
    type quantity revenue_mny count country
    a 10           10          2 India
    a 20          12          3 India
    b 30          15          1 India
    a 35          20          2 US
    b 20          10          1 US
    b 60          15          1 US
    I woulkd like to split the date based on type column.
    For each country, for Type "a" get the sum of revenue count quanity ans same for b
    and all shuld come in on row for each country.
    output should be like
    country revenue_mny(For a) quantity(for a) count(For a) revenue_mny(for b) quantity(for b) count(For b)
    India 22 30 5 15 30 1
    US 20 35 2 25 80 2
    I tried the below query . its not splittng the date for each country in one row.
    select country,
    sum(case when type='a') then revenue_mny else 0 end ) revenue_mny_a,
    sum(case when type='b' then revenue_mny else 0 end ) revenue_mny_b
    sum(case when type='a' then quantity else 0 end) quantity_a,
    sum(case when type='b' then quantity else 0 end) quantity_b from
    test
    group by country
    Please need your helo

    Like this?
    with t as
    select 'a' type, 10 quantity, 10 revenue_mny, 2 cnt, 'India' country from dual union all
    select 'a', 20, 12, 3, 'India' from dual union all
    select 'b', 30, 15, 1, 'India' from dual union all
    select 'a', 35, 20, 2, 'US' from dual union all
    select 'b', 20, 10, 1, 'US' from dual union all
    select 'b', 60, 15, 1, 'US' from dual
    select country,
    sum(case when type='a' then revenue_mny else 0 end ) revenue_mny_a,
    sum(case when type='a' then quantity else 0 end) quantity_a,
    sum(case when type='a' then cnt else 0 end) cnt_a,
    sum(case when type='b' then revenue_mny else 0 end ) revenue_mny_b,
    sum(case when type='b' then quantity else 0 end) quantity_b ,
    sum(case when type='b' then cnt else 0 end) cnt_b
    from t
    group by country;result:
    COUNTRY  REVENUE_MNY_A QUANTITY_A CNT_A REVENUE_MNY_B QUANTITY_B CNT_B
    India    22            30         5     15            30         1
    US       20            35         2     25            80         2Or you can do it with a decode instead of case. The result will be the same:
    with t as
    select 'a' type, 10 quantity, 10 revenue_mny, 2 cnt, 'India' country from dual union all
    select 'a', 20, 12, 3, 'India' from dual union all
    select 'b', 30, 15, 1, 'India' from dual union all
    select 'a', 35, 20, 2, 'US' from dual union all
    select 'b', 20, 10, 1, 'US' from dual union all
    select 'b', 60, 15, 1, 'US' from dual
    select country,
    sum(decode(type,'a',revenue_mny,0)) revenue_mny_a,
    sum(decode(type,'a',quantity,0)) quantity_a,
    sum(decode(type,'a',cnt,0)) cnt_a,
    sum(decode(type,'b',revenue_mny,0)) revenue_mny_b,
    sum(decode(type,'b',quantity,0)) quantity_b,
    sum(decode(type,'b',cnt,0)) cnt_b
    from t
    group by country;(I changed tablename from TEST to T and columnname from COUNT to CNT, because you should not use reserved words as tablename or columnname.)
    Edited by: hm on 09.10.2012 06:17

  • Wanted: Popup which allows the user to enter one string

    Hello,
    as the topic states, I am searching for a (modal) popup which lets the user enter one string in a text field and returns this string.
    I am currently using the function module 'POPUP_TO_GET_ONE_VALUE' for this purpose which works quite good - BUT it has one major drawback: the string that is returned is entirely in capital letters. This is not acceptable as I want to build a case-sensitive search based on the input...
    Any suggestions are greatly appreciated !
    Best regards,
    Patrick

    Anand,
    I'm just finished with your first reply - checked out 'POPUP_TO_SEARCH_VALUE' - and you already gave a second option - marvellous !
    Will try the other one out right now.
    You are right, the parameters that reference to the DDIC made me wonder and decide against this FM when I searched through all the available popups some time ago.
    To your first reply:
    the popup is quite good. It does indeed deliver a 'case preserved' string. What I don't like is the checkbox and the fact, that the confimation button is labeled 'search' rather than just the 'ICON_OK'. I should mention at this point that I reuse the popup in other scenarios where the string is not used for a search but to name certain objects. Again an all uppercase string (or all lowercase string as well) is unwanted.
    Now on to the second popup...
    Regards,
    Patrick

  • Populating of the data automatically from one jpanel to other jpanel

    Two different panels are there,for suppose if i give customer id in one panel it should automatically populate or display customer name in a textfield which is present in other panel.
    This can be done using database easily,but i wanted to know how it can be done using flat file system.
    please help me out. with a sample code example...
    waiting for the solution.

    This can be done using database easily,but i wanted to know how it
    can be done using flat file systemcheck out the io library. as for setting the component properties..it's no difference than how you would do it using a database..you would have to extract the data from the result set and populate the component with the data..same thing with flat file.
    if the file is a text file
    BufferedReader in = null;
    try{
        String line = null;  // hold a line of text from the text file
        String result = ""; // hold the result to display in the text area, etc..
        in = new BufferedReader(new FileReader(new File(filename)));
        while ((line= in.readLine) != null){
            // process a line of text from the file
        // update the GUI components
        txtOut.setText(result);
        lblOut.setText(result);
    catch (IOException io){
        io.printStackTrace();
    finally{
         // close the resource
        if (in != null){
            try{ in.close(); }
            catch(Exception e){}
    }

Maybe you are looking for

  • A question about a piece of scan port program

    The program as the following: import java.net.*; import java.io.*; public class Scan   public static void main(String[] args)     String host;     Socket theTCPsocket;     InetAddress hostAddress;     if (args.length < 1)       host = "localhost";   

  • Uneditable full-width bitmap images

    Under what settings does Captivate record the state change of various UI elements, like the depression of buttons and the checking of check boxes, as additional narrow, full-width bitmap slices which are not editable or localizable? For new recording

  • Depreciation posted in wrong period

    Hi All, I ran depreciation in period 10 for all assets, after that, I acquired a fixed asset  in period 10. After that I want to run depreciation again in period 10 in repeat mode, but modified depreciation values DON´T appear in period 10 in AW01N,

  • HT1725 I'm trying to buy songs on my iPad and it won't let me because of security questions but I forgot this so how do I resolve it?

    I'm trying to buy songs on my iPad and it won't let me because of security questions but I forgot this so how do I resolve it?

  • Hp g6 laptop notebook ,,,,,webcam hd

    when im on Skype ,,video calling my cam is working fine ,,my problem is even if I move slowly ,, the cam is blurry ,, like it has no stability ,,why is it like that ,, is there a programme that I can use to make any movement doesn't effect it when I