How to take Cartesian product on logical subsets of rows in SELECT query?

Hi All,
I have the following data in seg_tab table.
Seg_no
Seg_value
1
01
2
001
2
002
3
100040
3
100041
3
100042
3
100043
Expected result, which is produced by joining the logical subsets (by seg_no) in rows. The segments can vary, for simplicity it is 3 but it can grow upto any level.
Codes
01.001.100040
01.001.100041
01.001.100042
01.001.100043
01.002.100040
01.002.100041
01.002.100042
01.002.100043
The SQL statements required to create tables and populate it with the data is given below:
CREATE TABLE seg_tab (seg_no NUMBER, seg_value VARCHAR2(10));
--1st Subset
INSERT INTO seg_tab VALUES (1,'01');
--2nd Subset
INSERT INTO seg_tab VALUES (2,'001');
INSERT INTO seg_tab VALUES (2,'002');
--3rd Subset
INSERT INTO seg_tab VALUES (3,'100040');
INSERT INTO seg_tab VALUES (3,'100041');
INSERT INTO seg_tab VALUES (3,'100042');
INSERT INTO seg_tab VALUES (3,'100043');
Any help on guiding how to write the SQL statement will be highly appreciated.
Many Thanks
Kind Regards,
Bilal

Another way
with
seg_tab as
(select 1 seg_no,'01' seg_value from dual union all
select 2,'001' from dual union all
select 2,'002' from dual union all
select 3,'100040' from dual union all
select 3,'100041' from dual union all
select 3,'100042' from dual union all
select 3,'100043' from dual
concatenator(seg,codes) as
(select seg_no,seg_value
   from seg_tab
  where seg_no = 1
union all
select s.seg_no,c.codes || '.' || s.seg_value
   from concatenator c,
        seg_tab s
  where s.seg_no = c.seg + 1
select codes
  from concatenator
where seg = (select max(seg_no) from seg_tab)
order by codes
CODES
01.001.100040
01.001.100041
01.001.100042
01.001.100043
01.002.100040
01.002.100041
01.002.100042
01.002.100043
Regards
Etbin

Similar Messages

  • How to force Cartesian Product for unlineked (DBF) tables

    Hello
    We have been using CR8.5 for many years and we are just about to perform major upgrade to CR2011. I have, howverm found one strange behavior.
    Many of our reports are implemented in following way:
    MainTable.DBF (contains reported rows)
    ParamTable.DBF (contains one row with some general parameters)
    There is no data "link" between these tables but t makes sense to expect that every record from main table will see record from param table.
    in CR 8.5 Cartesian product of MainTable X ParamTable was ALWAYS available ad therefore we were able to (for example) hide the details & show only group totals, or display some header information (this can be also done by sub-report).
    in CR2011, however, this seems not to be the case anymore. Namely:
    any old report that I open in CR2011 has param line available only for the very first record and I was not able to find a way how to change it
    if I recreate the report from the scratch, sometimes Cartesian product is "provided" and sometimes not - I really do not know the reason for the decision.
    [I have one very ugly workaround: link these two tables with != (not equal operation) between two unrelated fields that can never be the same]
    Is there any "solution" to this cause as it blocks us from upgrading to the latest version?
    Kind Regards,
    Martin Fontan

    Hi Martin,
    Long story so here's the short one. As of CR 9 we completely redeveloped our database drivers and query engine. We removed all of the "hack" work arounds in our code for DB clients did not follow the rules, this forces the DB makers to fix the client engine and follow ANSII 92 standards. You also can no longer edit the SQL statement.
    We have also never supported unlinked tables, CR is a Relational database reporting tool. Us a subreport if you must use an unlinked table, or as you have discovered using a != type.
    Other work around is to use a Command, it' sin the Database wizard, write your own SQL, we simply pass it to the client. There is no option directly to set location from a Table to a SQL Command but search here, Brian Dong found a way around this limitation using a CR Wizard.
    Thanks
    Don

  • HOW TO EXECUTE A STORE PROCEDURE THAT RETURN MULTIPLE ROWS FROM A QUERY

    I NEED TO CREATE AND USE A STORE PROCEDURE THAT IS GOING TO DO A SELECT STATEMENT AN THE RESULT OF THE SELECT STATEMENT IS RETURN IN SOME WAY TO THE REQUESTER.
    THIS CALL IS MADE BY AN EXTERNAL LANGUAGE, NOT PL/SQL OR FORMS APPLICATION. USING FOR EXAMPLE ODBC AND VISUAL BASIC. WHAT I NEED TO DO IS ADD A DATA ACCESS LAYER TO MY APPLICATION AND I ALREADY HAVE IT DONE FOR MS SQL SERVER, BUT I NEED THE SAME FUNCTIONALITY ACCESSING AN ORACLE DATABASE.
    FLOW:
    1. VB CREATE A ODBC CONNECTION TO A ORACLE DATABASE
    2. VB EXECUTE A STORE PROCEDURE
    3. THE STORE PROCEDURE RETURNS TO THE VB APPLICATION THE RESULT OF THE QUERY THAT IS INSIDE OF THE STORE PROCEDURE.(I.E. THE STORE PROCEDURE IS A BASIC SELECT, NOTHING COMPLEX)
    4. VB DISPLAY THE RESULT IN A GRID
    FOR SURE I CAN DO THE SELECT DIRECTLY TO ORACLE, BUT FOR PERFORMANCE REASONS AND SCALABILITY, I'LL LIKE IT TO DO IT USING A STORE PROCUDURES
    IS THIS POSIBLE?, HOW?
    THANKS

    Certainly, it's possible. First, define a stored procedure that includes an OUT parameter which is a REF CURSOR. Then, call the stored procedure via ODBC omitting the OUT parameter from the list of parameters. IT will automatically be returned as a result set. Syntax for both is below...
    CREATE PROCEDURE foo (inParam in varchar2, resultSet OUT REF CURSOR )
    In ODBC:
    {call foo( 'someData' )}
    Justin

  • How to find the lowest grade for each student using a Select query?

    Hey I'm having a bit of trouble here
    I have this table
    Student - Grade
    John - 8
    Richard - 9
    Louis - 9
    Francis - 5
    John - 13
    Richard - 10
    Peter - 12
    Grades can range from 0 to 20.
    Name - varchar(50)
    Grade - integer
    I am trying to generate a SQL search to find each lowest grade for each student.
    So far I have done:
    select s.name,s.grade
    from student s
    where s.grade = (select min(grade) from student)
    The result of that search returns me only the lowest grade of all the grades posted above, which is Francis - 5.
    I want to find the lowest grade, but not only for Francis but also for every other student in the table.
    How do I do that?
    Thank you in advanced.

    ok,
    Now we are moving into Analytic SQL:
    with student as (select 'John' name, 8 grade, 'fail' result from dual union all
                     select 'John' name, 13 grade, 'pass' result from dual union all
                     select 'Francis',     5 grade,  'fail' from dual union all
                     select 'Peter', 12, 'pass' from dual)
    -- End of your test data
    SELECT   name,
             MAX (result) KEEP (DENSE_RANK FIRST ORDER BY grade) result,
             MIN (grade) min_grade
    FROM     student
    GROUP BY namePlease note that I passed ;)
    Regards
    Peter
    To read more:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions056.htm#SQLRF00641

  • How to hide and show button based on if row is selected in tabular form

    Hi,
    Im pretty new to apex. I am using version 4.1. I have a tabular form and what i want to do is only have the delete button show if i select a row from the [row selector] column. Can this be done using a dynamic action? I have tried it that way unsuccessfully. Please help or let me know if you need any more information.
    Thanks

    Do you mean if the check box is selected in the row?
    Assign a static ID to the delete button, e.g. MY_DEL_BTN. Look for "Static ID" under the Attributes section of the button.
    If so, make an advanced Dynamic Action based on Click and a jQuery selector. Usually, this element is name "f01" but, you need to make sure. Assuming it is "f01" then your jquery selector would be:
    input[name="f01"]set the event scope to live.
    Your dynamic action will fire JavaScript. (BE SURE TO UNSELECT FIRE ON PAGE LOAD). To make sure you have the right jQuery selector, at first just put a pop up message in the JavaScript.
    alert('You Clicked the Row Selector!');Run the page. Click the row selector. If you get the pop up you have specified the jQuery selector correctly. Yay!
    Then, assuming the above is correct. You can now determine if any have been selected.
    Now, set it back to SELECT TO FIRE ON PAGE LOAD (You want the delete to be hidden when you first open the page).
    Change your JavaScript to this:
    var checkedCnt = $("input:checked").length;
    if( checkedCnt > 0 )
       $('#MY_DEL_BTN').show();
    else
       $('#MY_DEL_BTN').hide();
    };-Joe

  • Dummy Product & Dummy Logical component???

    Hello SolMan Gurus,
    Can anybody throw some light on how to create Dummy Product & Dummy Logical component?
    Your replies will be greately appreciated.
    best regds,
    Alagammai.

    hi Alagammai 
    I would add that you could try creating servers, databases, systems and logical components, just by connecting Solution Manager to itself, could it be?
    Cheers,
    Cesar Aranda

  • Joins between two tables generating Cartesian product

    Hi All,
        I am facing an issue in my report in which, I am getting mismatch as the two subsets which I'm joining is resulting in a cartesian product of individual subset's results. I am doing left join to join those two subsets. Please help in resolving
    this issue. 
    Thank you,
    Anu.

    Hi,
    Can you please post your script to see what is causing the cartesian product?
    This way it is difficult to help you.
    Regards,
    Reshma
    Please Vote as Helpful if an answer is helpful and/or Please mark Proposed as Answer or Mark As Answer when question is answered

  • What is a cartesian product why we need it and where we need it

    Hi,
    One of my interview they asked this question
    Can any one please tell detail about it.
    Thanks
    Kalpana

    >
    what is a cartesian product
    >
    A cartesian join is when you do not specify any join condition between tables.
    So for two tables A and B the result is that every row of table B is appended to every row of table A.
    If there are 10 rows in Table A and 20 rows in Table b there will be 200 rows in the result set and each row will contain every column from table A and every column from table b unless you specify specific columns.
    See Cartesian Products in the SQL Language doc
    http://docs.oracle.com/cd/B28359_01/server.111/b28286/queries006.htm
    >
    Cartesian Products
    If two tables in a join query have no join condition, then Oracle Database returns their Cartesian product. Oracle combines each row of one table with each row of the other. A Cartesian product always generates many rows and is rarely useful. For example, the Cartesian product of two tables, each with 100 rows, has 10,000 rows. Always include a join condition unless you specifically need a Cartesian product. If a query joins three or more tables and you do not specify a join condition for a specific pair, then the optimizer may choose a join order that avoids producing an intermediate Cartesian product.
    >
    As for when? In earlier versions of Oracle I would use a cartesian join when creating report ready data tables and there needed to be data for every report period. One example is writing a Crystal Report (now business objects) to report sales for 2011 and you want the report to have a section for each month even if there was no data for that month.
    Then we would use a cartesian join on a date table that had 12 records (one for each month) with totals of zero. This would make sure that there was at lease one summary record for each month so that every month would show up on the report even if we only had data for March.

  • Want to avoid cartesian Product but cannot avoid it some how.

    Hi,
    I am using oracle 10G .
    trying to draft a query which is resulting in absurd results.
    select i.corr_acc_no, sum(amtsign.amount_6) from item i,
    (select corr_Acc_no,flag_2,decode(fund_code,'C',amount_6,amount_6*-1) amount_6 from item
    where corr_AcC_no in (select corr_acc_no from bank where local_Acc_no in ('MBL-SEG-NZD'))and flag_2=0) AmtSign
    where i.corr_acc_no=amtsign.corr_acc_no
    and i.flag_2=0
    group by  i.corr_acc_no
    Basically the inner query, which i am using as the second table in the join, gives 13 results. I want to sum the amount_6 field in main select clause which I want to get from results of
    (select corr_Acc_no,flag_2,decode(fund_code,'C',amount_6,amount_6*-1) amount_6 from item
    where corr_AcC_no in (select corr_acc_no from bank where local_Acc_no in ('MBL-SEG-NZD'))and flag_2=0)
    The sum took too much time so i drafted simple query to check how many rows are returned by removing sum and i noticed it gives a Cartesian product with 169 rows instead of just 13. I have 2 join conditions but the value for corr_Acc_no is same for all 13 rows, i can't use amount_6 as join becuase i am changing it's sign  in the inner query. Please advise.

    Thanks to both of you. @LakmalRajapakse your answer is bang on right. I did the same way after I posted this. I realized there's no point joining item with itself when I can get it done in single query. It's just that I was having hard time with 'Case' in select to get whatever I want,so I tried this logic. But then gave a try to decode, it worked. Thanks anyways.

  • How to take back or sale the scrap From Production

    Hello
    Suppose we have Issue some materials to Production say 1000 qty, for production, then here some scrap remains,we want to sell this scrap how to do?
    we have created the one material code for this scrap , How to take this material back and sale to out side how to to do this ? which is the best option, what is the use of movement type 531 here?
    Regards
    sapman

    Dear,
    At the time of production confirmation, the by-product that is produced gets transferred to the respective location. In this case the SCRAP, the goods movement takes place with the movement type ‘531 – Receipt of by-product into unrestricted use’ which is assigned already in co11n, goods movements.
    Once the Scrap is the respective storage location, it is ready for sale.
    Create a pricing procedure for selling scrap.
    It consists of Excise, education cess & higher secondary cess. And also you have conditions for CST & VAT, & TCS, Surcharge on TCS, education cess & higher secondary cess.
    Once you are done with pricing procedure, create condition records, create sales order, deliver and invoice, which is your normal sales process.
    Cheers!!

  • How to take data dump(export) with given language set on oracle 9i database(production server) ?

    Hi,
    I am taken data dump on oracle 9i machine and ported (imported ) oracle 10g (production machine) ,But it will showing error : language set error,
    Could you tell me how to take data dump with language set.
    Regards,
    Suva

    Hi PaulM,
         Please follows the details, 
    Development server  ,It is 9i machine (I am export in this machine) and Imported on Production Server ( It is Oracle 10 g).
        When import on production server error is coming, Tis error log adding below.
    Production Databse (Language details)
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    NLS_CHARACTERSET UTF8
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY $
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    NLS_NCHAR_CHARACTERSET UTF8
    NLS_RDBMS_VERSION 10.2.0.1.0
    Development Database  Language details Details.
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    NLS_CHARACTERSET UTF8
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY $
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    NLS_NCHAR_CHARACTERSET UTF8
    NLS_RDBMS_VERSION 10.2.0.1.0
    Log file
    Connected to: Oracle Database 10g Release 10.2.0.1.0 - Production
    Export file created by EXPORT:V09.02.00 via conventional path
    import done in WE8MSWIN1252 character set and UTF8 NCHAR character set
    import server uses UTF8 character set (possible charset conversion)
    export server uses AL16UTF16 NCHAR character set (possible ncharset conversion)
    . importing JW_OR's objects into JW_OR
    . importing JW_OS's objects into JW_OS
    . importing JW_ADMIN's objects into JW_ADMIN
    . importing JW_OR's objects into JW_OR
    . . importing table                      "ACCRXNS"     234671 rows imported
    . . importing table                  "AUTHORLINKS"     790450 rows imported
    . . importing table                      "AUTHORS"      79500 rows imported
    . . importing table                       "CATSOL"      25505 rows imported
    . . importing table               "CATSOLSYNONYMS"      80045 rows imported
    . . importing table                "CHAPTERTITLES"        133 rows imported
    . . importing table                "COMPOUNDLINKS"     601785 rows imported
    . . importing table                   "CONDITIONS"     207445 rows imported
    . . importing table                     "JOURNALS"       2327 rows imported
    . . importing table                     "LANGUAGE"          0 rows imported
    . . importing table                     "MAINDATA"     234659 rows imported
    . . importing table                      "MOLDATA"     721174 rows imported
    . . importing table                   "PLAN_TABLE"          1 rows imported
    . . importing table                   "REFERENCES"     276783 rows imported
    . . importing table                        "ROLES"          2 rows imported
    . . importing table                  "RXNKEYLINKS"    1724404 rows imported
    . . importing table                  "RXNKEYWORDS"        848 rows imported
    . . importing table                  "TABLETITLES"       2400 rows imported
    . . importing table                   "TEMP_TABLE"     165728 rows imported
    . . importing table          "TEMP_WILEY_MAINDATA"     155728 rows imported
    . . importing table           "TEMP_WILEY_PDF_MAP"      16672 rows imported
    . . importing table      "TEMP_WILEY_YEAR_VOL_MAP"         42 rows imported
    . . importing table                  "WEX_ACCRXNS"       3465 rows imported
    . . importing table              "WEX_AUTHORLINKS"      14183 rows imported
    . . importing table                  "WEX_AUTHORS"      79500 rows imported
    . . importing table            "WEX_CHAPTERTITLES"        133 rows imported
    . . importing table            "WEX_COMPOUNDLINKS"      10925 rows imported
    . . importing table               "WEX_CONDITIONS"       5297 rows imported
    . . importing table                 "WEX_JOURNALS"       2327 rows imported
    . . importing table                 "WEX_LANGUAGE"          0 rows imported
    . . importing table                 "WEX_MAINDATA"       3465 rows imported
    . . importing table                  "WEX_MOLDATA"      10358 rows imported
    . . importing table               "WEX_REFERENCES"       3795 rows imported
    . . importing table              "WEX_RXNKEYLINKS"      34540 rows imported
    . . importing table              "WEX_RXNKEYWORDS"        848 rows imported
    . . importing table              "WEX_TABLETITLES"       2400 rows imported
    . . importing table           "WEX_WILEY_HTML_MAP"      17316 rows imported
    . . importing table           "WEX_WILEY_MAINDATA"       3465 rows imported
    . . importing table            "WEX_WILEY_PDF_MAP"      23925 rows imported
    . . importing table       "WEX_WILEY_YEAR_VOL_MAP"         58 rows imported
    . . importing table               "WILEY_HTML_MAP"      17316 rows imported
    . . importing table               "WILEY_MAINDATA"     234659 rows imported
    . . importing table                "WILEY_PDF_MAP"      23925 rows imported
    . . importing table           "WILEY_YEAR_VOL_MAP"         58 rows imported
    . importing JW_OS's objects into JW_OS
    . . importing table                      "ACCRXNS"       7116 rows imported
    . . importing table                   "ATMOSPHERE"         47 rows imported
    . . importing table                  "AUTHORLINKS"      33276 rows imported
    . . importing table                      "AUTHORS"       6555 rows imported
    . . importing table                       "CATSOL"       1463 rows imported
    . . importing table               "CATSOLSYNONYMS"       9370 rows imported
    . . importing table                    "CHEMICALS"      78197 rows imported
    . . importing table                "COMPOUNDLINKS"      20799 rows imported
    . . importing table                       "EXPDET"          1 rows imported
    . . importing table                    "FOOTNOTES"      77825 rows imported
    . . importing table                     "JOURNALS"          2 rows imported
    . . importing table                     "LANGUAGE"          2 rows imported
    . . importing table                     "MAINDATA"       7116 rows imported
    . . importing table                     "PATHSTEP"       7199 rows imported
    . . importing table               "PROCEDURENOTES"      77293 rows imported
    . . importing table                        "ROLES"          2 rows imported
    . . importing table                  "RXNKEYLINKS"      23096 rows imported
    . . importing table                  "RXNKEYWORDS"       1272 rows imported
    . . importing table                  "WEX_ACCRXNS"        135 rows imported
    . . importing table               "WEX_ATMOSPHERE"         47 rows imported
    . . importing table              "WEX_AUTHORLINKS"        613 rows imported
    . . importing table                  "WEX_AUTHORS"       6555 rows imported
    . . importing table                "WEX_CHEMICALS"          0 rows imported
    . . importing table            "WEX_COMPOUNDLINKS"        497 rows imported
    . . importing table                   "WEX_EXPDET"          1 rows imported
    . . importing table                "WEX_FOOTNOTES"       2184 rows imported
    . . importing table                 "WEX_JOURNALS"          2 rows imported
    . . importing table                 "WEX_LANGUAGE"          2 rows imported
    . . importing table                 "WEX_MAINDATA"        135 rows imported
    . . importing table                 "WEX_PATHSTEP"        135 rows imported
    . . importing table           "WEX_PROCEDURENOTES"       2253 rows imported
    . . importing table              "WEX_RXNKEYLINKS"        695 rows imported
    . . importing table              "WEX_RXNKEYWORDS"       1272 rows imported
    . importing JW_ADMIN's objects into JW_ADMIN
    . . importing table                     "APP_USER"         76 rows imported
    . . importing table                       "AUTHOR"      61874 rows imported
    . . importing table                     "CITATION"
    IMP-00019: row rejected due to ORACLE error 12899
    IMP-00003: ORACLE error 12899 encountered
    ORA-12899: value too large for column "JW_ADMIN"."CITATION"."PAGE" (actual: 9, maximum: 8)
    Column 1 10794
    Column 2 77
    Column 3 1
    Column 4 24
    Column 5
    Column 6 Science of Synthesis
    Column 7 Negishi, E.-i.; Takahashi, T. Science of Synthesis...
    Column 8 681–848
    Column 9 2
    Column 10
    Column 11 2002
    IMP-00019: row rejected due to ORACLE error 12899
    IMP-00003: ORACLE error 12899 encountered
    ORA-12899: value too large for column "JW_ADMIN"."CITATION"."PAGE" (actual: 10, maximum: 8)
    Column 1 10879
    Column 2 77
    Column 3 1
    Column 4 110
    Column 5
    Column 6 Comprehensive Organic Synthesis
    Column 7 Hiemstra, H.; Speckamp, W. N.; Trost, B. M.; Flemi...
    Column 8 1047–108
    Column 9 2
    Column 10
    Column 11
    IMP-00019: row rejected due to ORACLE error 12899
    IMP-00003: ORACLE error 12899 encountered
    ORA-12899: value too large for column "JW_ADMIN"."CITATION"."PAGE" (actual: 10, maximum: 8)
    Column 1 10880
    Column 2 77
    Column 3 1
    Column 4 111
    Column 5
    Column 6 Houben-Weyl Methods of Organic Chemistry
    Column 7 De Koning, H.; Speckamp, W. N.; Helmchen, G.; Hoff...
    Column 8 1953–200
    Column 9 E21b
    Column 10
    Column 11 1995
    IMP-00019: row rejected due to ORACLE error 12899
    IMP-00003: ORACLE error 12899 encountered
    ORA-12899: value too large for column "JW_ADMIN"."CITATION"."PAGE" (actual: 10, maximum: 8)
    Column 1 10904
    Column 2 77
    Column 3 1
    Column 4 135
    Column 5
    Column 6 Houben-Weyl Methods of Organic Chemistry
    Column 7 Ryu, I.; Murai, S.; de Meijere, A., Ed. Houben-Wey...
    Column 8 1985–204
    Column 9 E17c
    Column 10
    Column 11 1997
    IMP-00019: row rejected due to ORACLE error 12899
    IMP-00003: ORACLE error 12899 encountered
    ORA-12899: value too large for column "JW_ADMIN"."CITATION"."PAGE" (actual: 9, maximum: 8)
    Column 1 10905
    Column 2 77
    Column 3 1
    Column 4 136
    Column 5
    Column 6 The Chemistry of the Cyclopropyl Group
    Column 7 Tsuji, T.; Nishida, S.; Patai, S.; Rappoport, Z., ...
    Column 8 307–373
    Column 9
    Column 10
    Column 11 1987
    IMP-00019: row rejected due to ORACLE error 12899
    IMP-00003: ORACLE error 12899 encountered
    ORA-12899: value too large for column "JW_ADMIN"."CITATION"."PAGE" (actual: 10, maximum: 8)
    Column 1 10906
    Column 2 77
    Column 3 1
    Column 4 137
    Column 5
    Column 6 The Chemistry of the Cyclopropyl Group
    Column 7 Vilsmaier, E.; Patai, S.; Rappoport, Z., Eds. The ...
    Column 8 1341–145
    Column 9
    Column 10
    Column 11 1987
    IMP-00019: row rejected due to ORACLE error 12899
    IMP-00003: ORACLE error 12899 encountered
    ORA-12899: value too large for column "JW_ADMIN"."CITATION"."PAGE" (actual: 9, maximum: 8)
    Column 1 10952
    Column 2 77
    Column 3 1
    Column 4 183
    Column 5
    Column 6 Cyclopropane-Derived Reactive Intermediates
    Column 7 Boche, G.; Walborsky, H. M. Cyclopropane-Derived R...
    Column 8 117–173
    Column 9
    Column 10
    Column 11 1990
    IMP-00019: row rejected due to ORACLE error 12899
    IMP-00003: ORACLE error 12899 encountered
    ORA-12899: value too large for column "JW_ADMIN"."CITATION"."PAGE" (actual: 10, maximum: 8)
    Column 1 10958
    Column 2 77
    Column 3 1
    Column 4 189
    Column 5
    Column 6 Houben-Weyl Methods of Organic Chemistry
    Column 7 Klunder, A. J. H.; Zwanenburg, B. Houben-Weyl Meth...
    Column 8 2419–243
    Column 9 E17c
    Column 10
    Column 11 1997
    IMP-00019: row rejected due to ORACLE error 12899
    IMP-00003: ORACLE error 12899 encountered
    ORA-12899: value too large for column "JW_ADMIN"."CITATION"."PAGE" (actual: 9, maximum: 8)
    Column 1 10995
    Column 2 77
    Column 3 1
    Column 4 226
    Column 5
    Column 6 Science of Synthesis
    Column 7 Cha, J. K. Science of Synthesis 2005, 325–338.
    Column 8 325–338
    Column 9
    Column 10
    Column 11 2005
    IMP-00019: row rejected due to ORACLE error 12899
    IMP-00003: ORACLE error 12899 encountered
    ORA-12899: value too large for column "JW_ADMIN"."CITATION"."PAGE" (actual: 10, maximum: 8)
    Column 1 17123
    Column 2 82
    Column 3 1
    Column 4 13
    Column 5
    Column 6 Comprehensive Organometallic Chemistry II
    Column 7 Dushin, R. G.; Edward, W. A.; Stone, F. G. A.; Wil...
    Column 8 1071–109
    Column 9 12
    Column 10
    Column 11 1995
    IMP-00019: row rejected due to ORACLE error 12899
    IMP-00003: ORACLE error 12899 encountered
    ORA-12899: value too large for column "JW_ADMIN"."CITATION"."PAGE" (actual: 9, maximum: 8)
    Column 1 17124
    Column 2 82
    Column 3 1
    Column 4 14
    Column 5
    Column 6 Modern Carbonyl Olefination
    Column 7 Ephritikhine, M.; Villiers, C.; Takeda, T. Ed. Mod...
    Column 8 223–285
    Column 9
    Column 10
    Column 11 2004
    IMP-00019: row rejected due to ORACLE error 12899
    IMP-00003: ORACLE error 12899 encountered
    ORA-12899: value too large for column "JW_ADMIN"."CITATION"."PAGE" (actual: 9, maximum: 8)
    Column 1 17126
    Column 2 82
    Column 3 1
    Column 4 16
    Column 5
    Column 6 Transition Metals for Organic Synthesis (2nd Editi...
    Column 7 Furstner, A.; Beller, M.; Bolm, C. Eds. Transition...
    Column 8 449–468
    Column 9
    Column 10
    Column 11 2004      17712 rows imported
    . . importing table                     "FOOTNOTE"         38 rows imported
    . . importing table              "GT_STATS_REPORT"          0 rows imported
    . . importing table         "GT_VALIDATION_REPORT"          0 rows imported
    . . importing table                     "OR_USERS"          1 rows imported
    . . importing table                     "OS_USERS"          1 rows imported
    . . importing table                "PROCEDURENOTE"         70 rows imported
    . . importing table                  "QC_TRACKING"     539881 rows imported
    . . importing table                         "ROLE"          5 rows imported
    . . importing table                       "SCHEMA"          3 rows imported
    . . importing table              "TASK_ALLOCATION"     159370 rows imported
    . . importing table                     "USER_LOG"     174488 rows imported
    . . importing table                      "VERSION"          3 rows imported
    About to enable constraints...
    IMP-00017: following statement failed with ORACLE error 2298:
    "ALTER TABLE "AUTHOR" ENABLE CONSTRAINT "FK_AUTHOR_CITATIONID""
    IMP-00003: ORACLE error 2298 encountered
    ORA-02298: cannot validate (JW_ADMIN.FK_AUTHOR_CITATIONID) - parent keys not found
    Import terminated successfully with warnings.
    Regards,
    Subash

  • How to take Bank payment voucher from sap fico production user?

    Hi
    how to take Bank payment voucher form sap fico from production user?
    anyone can help?
    Thanks in advance?
    Thanks
    Chandu....

    Hi,
    Ask your ABAP consultant to develop Z program for payment voucher printing.
    In program selection screen will be
    1. Company Code
    2.  Document Number
    3. Fiscal Year
    and you can get the desire output according the data key in the document.
    Regards
    Shayam

  • How to take advantage of our promo for this product CC prepaid for one year?

    When I try to buy CC prepaid for one year I I get the following message
    You're already subscribed to the Creative Cloud Student and Teacher edition (one-year). See your plan details.
    Want to take advantage of our promo for this product? Please contactCustomer Support to see if you qualify.
    And then I get routed to this forum which is super annoying! This does not help me with my specific details and causes me to spend a lot of time trying to figure out how to buy a product ?! Just send me to a sales rep that can IMMEDIATELY answer my specific questions.

    Upgrade single to all Cloud http://forums.adobe.com/thread/1235382 may help

  • How Cartesian products affects Sybase IQ performance?

    In my IQ message log, I have the following message:
    I. 04/21 08:28:22. 0001847919 Exception Thrown from dfo_Root.cxx:822, Err# 0, tid 8 origtid 8
    I. 04/21 08:28:22. 0001847919 O/S Err#: 0, ErrID: 9216 (df_Exception); SQLCode: -1005015, SQLState: 'QTA15', Severity: 14
    I. 04/21 08:28:22. 0001847919 [20169]: The optimizer was unable to find a query plan that avoided cartesian product joins larger than the Max_Cartesian_Result setting
    -- (dfo_Root.cxx 822) 
    I don´t know if
    this situation may affect the overall performance
    Thank you

    Hi Jairo,
    As Cartesian product (no join conditions) selects large number of rows, it requires more exec time, temp space (if order by, group by, etc,..) , temp cache, main cache, threads.
    To get close estimations about query resources consumtion, you can generate plans without execution using option NoExec.
    Query plan option recommended are : quary_name, query_plan, query_detail, query_plan_as_html, query_plan_as_html_directory, dml_options10.
    See Generating Query Plans
    Note that other resource monitoring options can be enabled/used , but they require effectivel query exection. The info are collected once execution is finished with success. Eg. query_plan_after_run and query_timing.
    Regards,
    Tayeb.

  • How can i closed production verion wise in c223

    Welcome, ANILKUMAR BEHERA   
    Your Control Panel 
    Your Reward Points 
    Your Questions 
    Expert Forums » ABAP Development » ABAP Objects
    Thread: how can i get production version value(verid) for luck through bdc.
    Your question is not answered.
    Mark as answered.
      You are watching this thread. To stop watching this thread, click "Stop Watching Thread" below. (Watch Options)
    This watch sends emails by default. If you don't want to receive emails on changes in this thread, go to the watch options, un-mark the "Email" checkbox next to the thread's entry and click "Update". 
    Reply to this Thread   Search Forum    Stop Watching Thread    Back to Thread List 
      Replies: 0 - Pages: 1  Threads: Previous  
    ANILKUMAR BEHERA  
    Posts: 20
    Registered: 10/13/07
    Forum Points: 0 
       how can i get production version value(verid) for luck through bdc.  
    Posted: Feb 14, 2008 1:32 PM     Edit      E-mail this message      Reply 
    HI..
    i have one requirement..that in c223 tcode while i luck the production version through BDC in my report program as i given bellow...i upload mat.no , plant, production version and 1(for luck)...
    req:: i want while i given production version for particlular plant and material no...that production version should be luck....
    so in standard tcode c223 how can i get value to compair it with my input production version value then i will close that...
    program:::
    report ZC2232
    no standard page heading line-size 255.
    *include bdcrecx1.
    Tables : mkal.
    data : nodata value '/' .
    data : CTUMODE type c value 'E'.
    DATA : CUPDATE TYPE C VALUE 'L'.
    DATA: BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
    messages of call transaction
    DATA: MESSTAB LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
    data: begin of HEADER OCCURS 0,
    data element: MATNR
    MATNR_001(018),
    data element: WERKS_D
    WERKS_002(004),
    data element: PLNNR
    PLNNR_003(008),
    data element: CP_STTAG
    STTAG_003(010),
    data element: ENTRY_ACT
    ENTRY_ACT_005(011),
    data element: PLNAL
    PLNAL_004(001),
    data element: FLG_SEL
    FLG_SEL_01_006(001),
    data element: PLANTEXT
    STLAL_004(002),
    DATUV_005(010),
    WERKS_008(004),
    data element: PLN_VERWE
    ktext_005(001),
    data element: PLNST
    DELKZ_005(001),
    data element: LOSGRVON
    LOSVN_011(017),
    data element: LOSGRBIS
    LOSBS_012(017),
    data element: PLNME
    PLNME_013(003),
    data element: PLNME
    stlal_014(002),
    end of HEADER.
    data : begin of it_header occurs 0,
    matnr like marc-matnr,
    werks like marc-matnr,
    verid like mkal-verid,
    mksp like mkal-mksp,
    end of it_header.
    data : exnum(40) type c,
    exnum1(40) type c,
    cnt type I,
    CN(2) TYPE C,
    c1 type c value '(',
    c2 type c value ')'.
    start-of-selection.
    parameters: p_file like rlgrap-filename.
    at selection-screen on value-request for p_file.
    call function 'F4_FILENAME'
    EXPORTING
    PROGRAM_NAME = SYST-CPROG
    DYNPRO_NUMBER = SYST-DYNNR
    FIELD_NAME = ' '
    importing
    file_name = p_file.
    start-of-selection.
    call function 'WS_UPLOAD'
    exporting
    CODEPAGE = ' '
    filename = p_file
    filetype = 'DAT'
    HEADLEN = ' '
    LINE_EXIT = ' '
    TRUNCLEN = ' '
    USER_FORM = ' '
    USER_PROG = ' '
    DAT_D_FORMAT = ' '
    IMPORTING
    FILELENGTH =
    tables
    data_tab = it_header
    EXCEPTIONS
    CONVERSION_ERROR = 1
    FILE_OPEN_ERROR = 2
    FILE_READ_ERROR = 3
    INVALID_TYPE = 4
    NO_BATCH = 5
    UNKNOWN_ERROR = 6
    INVALID_TABLE_WIDTH = 7
    GUI_REFUSE_FILETRANSFER = 8
    CUSTOMER_ERROR = 9
    NO_AUTHORITY = 10
    OTHERS = 11
    if sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    DELETE it_header WHERE MATNR IS INITIAL.
    LOOP AT it_header.
    *start-of-selection.
    *perform open_group.
    perform bdc_dynpro using 'SAPLCMFV' '1000'.
    perform bdc_field using 'BDC_OKCODE'
    '=ENTE'.
    perform bdc_field using 'BDC_CURSOR'
    'MKAL-WERKS'.
    perform bdc_field using 'MKAL-WERKS'
    it_header-werks.
    perform bdc_field using 'MKAL-MATNR'
    it_header-matnr.
    perform bdc_dynpro using 'SAPLCMFV' '1000'.
    perform bdc_field using 'BDC_OKCODE'
    '=PICK'.
    perform bdc_field using 'MKAL-WERKS'
    it_header-werks.
    perform bdc_field using 'MKAL-MATNR'
    it_header-matnr.
    *>>>>>>>>>>>>>>>>>>>>here what logic can i write****
    clear cnt.
    do 15 times.
    cnt = cnt + 1 .
    CN = CNT.
    exnum = 'MKAL_EXPAND-VERID'.
    concatenate exnum c1 cn c2 into exnum1.
    *perform bdc_field using 'BDC_CURSOR'
    exnum1.
    GET PARAMETER ID 'VER' FIELD EXNUM1.
    CALL TRANSACTION 'C223' AND SKIP FIRST SCREEN.
    if ( it_header-verid = EXNUM1 ).
    exit.
    endif.
    enddo.
    ****************************************************end***>>>>>>>>
    perform bdc_field using 'BDC_CURSOR'
    exnum1.
    perform bdc_dynpro using 'SAPLCMFV' '2000'.
    perform bdc_field using 'BDC_CURSOR'
    'MKAL_EXPAND-PLNTY'.
    perform bdc_field using 'BDC_OKCODE'
    '=PRFG'.
    perform bdc_dynpro using 'SAPMSSY0' '0120'.
    perform bdc_field using 'BDC_OKCODE'
    '=RW'.
    perform bdc_dynpro using 'SAPLCMFV' '2000'.
    perform bdc_field using 'BDC_OKCODE'
    '/ECANC'.
    perform bdc_field using 'BDC_CURSOR'
    'MKAL_EXPAND-VERID'.
    perform bdc_dynpro using 'SAPLCMFV' '1000'.
    perform bdc_field using 'BDC_OKCODE'
    '=SAVE'.
    perform bdc_field using 'BDC_CURSOR'
    'MKAL-WERKS'.
    perform bdc_field using 'MKAL-WERKS'
    it_header-werks.
    perform bdc_field using 'MKAL-MATNR'
    it_header-matnr.
    perform bdc_dynpro using 'SAPLCMFV' '1000'.
    perform bdc_field using 'BDC_OKCODE'
    '/EBACK'.
    perform bdc_transaction using 'C223'.
    endloop.
    *perform close_group.
    *& Form bdc_dynpro
    text
    -->P_0161 text
    -->P_0162 text
    form bdc_dynpro USING PROGRAM DYNPRO.
    CLEAR BDCDATA.
    BDCDATA-PROGRAM = PROGRAM.
    BDCDATA-DYNPRO = DYNPRO.
    BDCDATA-DYNBEGIN = 'X'.
    APPEND BDCDATA.
    endform. " bdc_dynpro
    *& Form bdc_transaction
    text
    -->P_0351 text
    form bdc_transaction USING TCODE.
    call transaction 'C223' using bdcdata
    mode CTUMODE
    update CUPDATE
    messages into messtab.
    if sy-subrc 0.
    message e000(zmm01) with
    'Check your input data'.
    endif.
    endform. " bdc_transaction
    *& Form bdc_field
    text
    -->P_0346 text
    -->P_0347 text
    form bdc_field USING FNAM FVAL.
    if fval nodata.
    CLEAR BDCDATA.
    BDCDATA-FNAM = FNAM.
    BDCDATA-FVAL = FVAL.
    APPEND BDCDATA.
    endif.
    endform. " bdc_field
    Pages: 1    Back to Thread List 
    Threads: Previous  
      New content since your last visit 
      Updated content since your last visit

    macbook pro, 500gb ,version 10.9.5 ,
    all files in open in Quiketime media player  how can i closed..whenever i open quicktime all files are open..i have tried to closed by force quit..but whenever i again open quicktime files are still open..
    You have basically formed a "poor" habit—i.e., closing apps and assuming they will close any/all open activity windows. The latest versions of Mac OS X now, by default, "remembers" what windows are open when an app is closed. You have three options here:
    1) Get in the habit of closing active windows before closing an app to prevent them from re-opening automatically the next time the app is opened.
    2) Hold down the "Option" key when selecting the "Quit" menu option (keyboard shortcut "Option-Command-Q") with system preference option in the default mode.
    3) Change the default system preference to automatically close active windows in the same manner that older Mac OS X versions did by checking the "Close windows when quitting an app" in the Syeyem Preferences "General" menu.
    NOTE: This setting works as a "software switch" for your application's "Quit" menu option. I.e., in the "Unchecked" mode the Option-Quit menu option and keyboard shortcut (Option-Command-Q) tells the system to forget active windows when the app is next opened while the "Checked" option mode tells the system to remember the active windows when using the Option-Quit menu or keyboard shortcut options.
    Your choice for settings and/or method of closing apps.

Maybe you are looking for

  • Macbook Pro intranet will not work on iPads

    I'm trying to set up an intranet network hosted on my MacBook Pro running Mountain Lion 10.8.5.  I have created a local web site hosted in the Apache server on the MBP, and I want 5 iPads to access it.  Its event photos for sale.  The problem is, the

  • Issues with lines across the screen, as well as freezing

    Issues with lines across the screen, as well as freezing Hello all Got an iMac since January 2008 and I do like it a lot, even though it has some issues: -- It displays (quite often) lines partially across the screen -- Lines appear as well when open

  • MacPro Intel IDE drives to SATA ??

    I have a MacPro that I purchased new in 2008 with 2.8 GHz Xeons and GeForce 8800 video cards with SATA hard drives BUT with IDE optical drives and I want them to be SATA also for my BluRay burner rather than have to put the BRD in my Windows machine

  • Win 7 -64bit drivers for HP15 r204tu

    Hi, Can any one help me in specifically choosing hp 15 r204tu drivers for chipset/graphics as a plenty are available in hp site but no one worked for me. Thanks in advance.

  • Too many copies installed

    I keep getting warning at PE9 startup that I have installed PE9 on too many computers even though I have uninstalled on all but the 2 permitted. How do I get rid of this warning? It is a registration box at startup requesting product code etc. It kee