How to avoid repeating fields

Hi,
I have data like this in my tables,
Table1,
ITEM_NO ITEM_MADE
1 A
1 B
2 A
3 A
Table2
ITEM_NO ITEM_GRAM_WT ITEM_METAL_WT
1 12gm 14gm
1 10gm 12gm
2 15gm 21gm
Table3
ITEM_NO ITEM_SIZE ITEM_SHAPE
1 7mgm OVAL
1 9mgm RING
2 3mgm RECT
Table4
ITEM_NO ITEM_ACC_SIZE ITEM_ACC_SHAPE
1 0987 Round
2 8765 Rectangle
Table5
ITEM_NO ITEM_MOVE_CURRLOC ITEM_MOVE_JOBNO
5 jack 6543
Using the below query to retrive the data,
select * from table1 a, table2 b, table3 c, table4 d, table5 e
where a.item_made = 'A'
     and b.item_no(+) = a.item_no
and c.item_no(+) = a.item_no
and d.item_no(+) = a.item_no
and e.item_no(+) = a.item_no
when i'm creating a report with group left format some of the data is repeating, right now i'm adding item_no and item_made as group fields in the report. how can i avoid the repetition and get a good report
thanks for your help
Bcj

Hi Bcj,
First, just wanted to ask if you are really using * in your select statement as opposed to naming each field that you uses? I asked this because, i know it's tidious to type in each and every columns but in this way you don't have to repeat the primary key column (item_no) in your report unless there is a need for you to do it that way, just a thought.
Now, for you question. You should be able to group table 2 the same way as grouping table1. if you have the following field item in your report
         a.item_no,
         a.item_made,
         b.item_gram_wt,
         b.item_metal_wt,
         c.item_size,
         c.item_shape,
         d.item_acc_size,
         d.item_acc_shape,
         e.item_move_currloc,
         e.item_move_jobnoand you said you grouped table1, i assume your data model looks somewhat as follows:
| G_table1            |
| a.item_no,          |
| a.item_made,        |
          |
| G_other             |
| b.item_gram_wt,     |
| b.item_metal_wt,    |
| c.item_size,        |
| c.item_shape,       |
| d.item_acc_size,    |
| d.item_acc_shape,   |
| e.item_move_currloc,|
| e.item_move_jobno   |
-----------------------To group it by table2, you can just drag the columns out of G_others to create another group. Just as follows:
| G_table1            |
| a.item_no,          |
| a.item_made,        |
          |
| G_table2            |
| b.item_gram_wt,     |
| b.item_metal_wt,    |
          |
| G_others            |
| c.item_size,        |
| c.item_shape,       |
| d.item_acc_size,    |
| d.item_acc_shape,   |
| e.item_move_currloc,|
| e.item_move_jobno   |
-----------------------Hope this helps. Let me know if you are still having problem grouping your report. I would also help if you could post a sample of your actual data.
-Marilyn

Similar Messages

  • How can avoid mandatory fields in data transfer

    hai
    please respond me
    how can avoid mandatory fields in data transfer like bdc

    hi,
    u have to pass values for mandatory fields in bdc method, u have to prepare u r bdc data such a way that all the mandatory fields are filled, other wise it will give error

  • How to avoid repeated emails using send email tasks in package?

    Hi,
    I have package with two sqeuence containers which are not connected.So when I was using send email tasks I was getting repeated emails like 5 to 6 emails.So, can someone hep me on this.How can we avoid repeated emails.
    Regards,
    Sudha
    sudha

    See this example on preventing executing a task within an Event Handler:
    http://microsoft-ssis.blogspot.com/2014/07/prevent-events-executing-multiple-times.html
    Please mark the post as answered if it answers your question | My SSIS Blog:
    http://microsoft-ssis.blogspot.com |
    Twitter

  • How to avoid repeatation of code

    hi
    My code is as mentioned below.
    if l_location ='USA'
    insert into location
    select f1,f2,f3,f4
    from usa_tab
    else if l_location = 'FRANCE'
    insert into location
    select f1,f2,f3,f4
    from france_tab f , x1_tab x
    where f.id = x.id
    else if l_location = 'UK'
    insert into location
    select f1,f2,f3,f4
    from uk_tab u,y1_tab y
    where u.id = y.id
    end if;
    how to avoid the repeatation of code here?

    954992 wrote:
    it is an existing application. The tables can not be changed.
    actually here the insert and select statements are fixed , only the from and where conditions are getting changed.
    howf to avoid repeatation of the fixed code?Oracle supports features called "+partition views+" and "+instead of triggers+". This can be used to glue tables (same structure) together and select and insert against these tables via a view.
    Basic example:
    // tables that constitutes the partition view - a check constraint on
    // country is used to specify which cities are in which table, similar
    // to a partition key
    SQL> create table location_france(
      2          country varchar2(10) default 'FRANCE' not null,
      3          city    varchar2(20) not null,
      4          --
      5          constraint chk_france check (country in 'FRANCE'),
      6          constraint pk_location_france primary key
      7          ( country, city )
      8  ) organization index;
    Table created.
    SQL> create table location_uk(
      2          country varchar2(10) default 'UK' not null,
      3          city    varchar2(20) not null,
      4          --
      5          constraint chk_uk check (country in 'UK'),
      6          constraint pk_location_uk primary key
      7          ( country, city )
      8  ) organization index;
    Table created.
    SQL> create table location_spain(
      2          country varchar2(10) default 'SPAIN' not null,
      3          city    varchar2(20) not null,
      4          --
      5          constraint chk_spain check (country in 'SPAIN'),
      6          constraint pk_location_spain primary key
      7          ( country, city )
      8  ) organization index;
    Table created.A partition view is a view that uses union all to glue these tables together:
    SQL> create or replace view locations as
      2          select * from location_france
      3          union all
      4          select * from location_uk
      5          union all
      6          select * from location_spain
      7  /
    View created.To support inserts against the partition view, an instead-of trigger is used:
    SQL> create or replace trigger insert_location
      2          instead of insert on locations
      3  begin
      4          case :new.country
      5                  when 'FRANCE' then
      6                          insert into location_france values( :new.country, :new.city );
      7                  when 'UK' then
      8                          insert into location_uk values( :new.country, :new.city );
      9                  when 'SPAIN' then
    10                          insert into location_spain values( :new.country, :new.city );
    11          else
    12                  raise_application_error(
    13                          -20000,
    14                          'Country name ['||:new.country||'] is not supported.'
    15                  );
    16          end case;
    17  end;
    18  /
    Trigger created.Rows can now be inserted into the view and the trigger will ensure that the rows wind up in the correct table.
    SQL> insert into locations values( 'FRANCE', 'PARIS' );
    1 row created.
    SQL> insert into locations values( 'UK', 'LONDON' );
    1 row created.
    SQL> insert into locations values( 'SPAIN', 'BARCELONA' );
    1 row created.As with a partition table, a select on a partition view that uses the "partition column" (in this case, the COUNTRY column), the CBO can prune the non-relevant tables from the view and only select against the relevant table. In the following example, the UK is used as country filter and the CBO shows that only table LOCATION_UK is used.
    SQL> set autotrace on explain
    SQL> select * from locations where country = 'UK';
    COUNTRY    CITY
    UK         LONDON
    Execution Plan
    Plan hash value: 1608298493
    | Id  | Operation           | Name               | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT    |                    |     1 |    19 |     1   (0)| 00:00:01 |
    |   1 |  VIEW               | LOCATIONS          |     1 |    19 |     1   (0)| 00:00:01 |
    |   2 |   UNION-ALL         |                    |       |       |            |          |
    |*  3 |    FILTER           |                    |       |       |            |          |
    |*  4 |     INDEX RANGE SCAN| PK_LOCATION_FRANCE |     1 |    19 |     2   (0)| 00:00:01 |
    |*  5 |    INDEX RANGE SCAN | PK_LOCATION_UK     |     1 |    19 |     2   (0)| 00:00:01 |
    |*  6 |    FILTER           |                    |       |       |            |          |
    |*  7 |     INDEX RANGE SCAN| PK_LOCATION_SPAIN  |     1 |    19 |     2   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       3 - filter(NULL IS NOT NULL)
       4 - access("COUNTRY"='UK')
       5 - access("COUNTRY"='UK')
       6 - filter(NULL IS NOT NULL)
       7 - access("COUNTRY"='UK')
    Note
       - dynamic sampling used for this statement (level=2)
    SQL>Oracle provides a number of methods to address flawed data models and problematic client code. However, despite this flexibility on Oracle's part, you should still consider fixing the flawed design and code - as that flaws invariable mean reducing flexibility, performance and scalability.

  • How to display repeating fields on PDF template?

    I'm having trouble printing repeating fields on a PDF. I followed the BI user guide but the report generates only one row. The sample XML file has 6 employees. I want to print a row for each employee using PDF as my template instead of RTF document. My data source is XML file and I am currently on PeopleTools 8.50 and Enterprise Portal 9.1. Please help.
    I have the form fields on the PDF as follows:
    Name: body_start
    Tooltip: <?rep_field="BODY_START"?>
    Name: EMPNO
    Tooltip: <?rep_field="T1_G1"?>
    Name: ENAME
    Tooltip: <?rep_field="T1_G1"?>
    Name: JOB
    Tooltip: <?rep_field="T1_G1"?>
    Name: SAL
    Tooltip: <?rep_field="T1_G1"?>
    Name: body_end
    Tooltip: <?rep_field="BODY_END"?>
    -- XML file -----
    <?xml version="1.0" ?>
    <ROOT>
    <LIST_G_EMPNO>
    <G_EMPNO>
    <EMPNO>7782</EMPNO>
    <ENAME>CLARK</ENAME>
    <JOB>MANAGER</JOB>
    <SAL>2450</SAL>
    </G_EMPNO>
    <G_EMPNO>
    <EMPNO>7839</EMPNO>
    <ENAME>KING</ENAME>
    <JOB>PRESIDENT</JOB>
    <SAL>5000</SAL>
    </G_EMPNO>
    <G_EMPNO>
    <EMPNO>125</EMPNO>
    <ENAME>KANG</ENAME>
    <JOB>CLERK</JOB>
    <SAL>2000</SAL>
    </G_EMPNO>
    <G_EMPNO>
    <EMPNO>7934</EMPNO>
    <ENAME>MILLER</ENAME>
    <JOB>CLERK</JOB>
    <SAL>1300</SAL>
    </G_EMPNO>
    <G_EMPNO>
    <EMPNO>123</EMPNO>
    <ENAME>MARY</ENAME>
    <JOB>CLERK</JOB>
    <SAL>400</SAL>
    </G_EMPNO>
    <G_EMPNO>
    <EMPNO>124</EMPNO>
    <ENAME>TOM</ENAME>
    <JOB>CLERK</JOB>
    <SAL>3000</SAL>
    </G_EMPNO>
    </LIST_G_EMPNO>
    </ROOT>
    Edited by: user8260115 on Jan 27, 2010 9:21 AM

    Can you advise me what needs to be done to view my pdf template with the given xml below. What would be the setup of my rep_fields.. I'm also getting the "FO Formatting failed" error when trying in BI Pub Template Viewer.
    <LIST_BILL_SEG>
    <BILL_SEG>
    <CALC_AMT>5</CALC_AMT>
    <BILL_SQ>0</BILL_SQ>
    </BILL_SEG>
    <BILL_SEG>
    <CALC_AMT>10</CALC_AMT>
    <BILL_SQ>1</BILL_SQ>
    </BILL_SEG>
    <BILL_SEG>
    <CALC_AMT>15</CALC_AMT>
    <BILL_SQ>2</BILL_SQ>
    </BILL_SEG>
    <BILL_SEG>
    <CALC_AMT>20</CALC_AMT>
    <BILL_SQ>3</BILL_SQ>
    </BILL_SEG>
    </LIST_BILL_SEG>

  • How to avoid mandatory fields popup when cancelling a transaction

    Hi All,
    I have created a Employee create page and put some mandatory fields on it
    and have 2 buttons apply and cancel . if i navigate to that page and not enter anything and press cancel button a dialog comes up asking me to enter mandatory fields
    what should i do to avoid that popup ?
    thanks
    ananya

    Either
    1) disable client side validation on press of cancel button
    2)Or Don't mark the fields required and handle this in ur code on apply button event as server side validation.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                               

  • How to avoid repeat values in two tables

    hi there,
    I have two tables. SUPPLIERS and MANUFACTURERS. SUPPLIERS has more than one MANUFACTURERS. In normalization rule, a field must have single piece of data. SUPPLIERS_ID is repeating for every MANUFACTURERS. pls help me out to normalize these two tables.
    Thank u...

    Ideally you need to have 2 master tables SUPPLIER & MANUFACTURER.
    Then you need an intermediate transaction table to hold the relationship bet SUPPLIED & MANUFACTURER. Here the records will be repeated.

  • How to avoid repeat where clause in oracle sql

    Hi,
    Please find my query below, I need a help to avoid duplication of **where** clause in my query.
    In my below query, **JOIN** condition is same for both the queries and **WHERE** condition also same except this clause "and code.code_name="transaction_1"
    In **IF ** condition only credit and debit is swapped on both queries, due to this **Credit and Debit** and this where clause "and code.code_name="transaction_1" I am duplicating the query. Can you please give some solution to avoid this duplication. I am using oracle 11g
    select DAY as business_date,sum(amount) as AMOUNT, type_amnt as amount_type,test_code as code_seg
    from
    select table1_alias.date as DAY,code.code_numb as test_code,
    CASE
    WHEN qnty_item > 0 THEN 'credit'
    ELSE 'debit'
    END as type_amnt,
    "25.55" as amount
    from
    code_table code,
    table1 table1_alias
    join table2 table2_alias on table1_alias.id = table2_alias.id
    where
    table1_alias.state="OK"
    and table1_alias.type="R"
    and code.code_type="Movie"
    and code.code_name="transaction_1"
    UNION ALL
    select table1_alias.date as DAY,code.code_numb as test_code,
    CASE
    WHEN qnty_item > 0 THEN 'debit'
    ELSE 'credit'
    END as type_amnt,
    "25.55" as amount
    from
    code_table code,
    table1 table1_alias
    join table2 table2_alias on table1_alias.id = table2_alias.id
    where
    table1_alias.state="OK"
    and table1_alias.type="R"
    and code.code_type="Movie"
    and code.code_name="transaction_2"
    group by DAY, test_code,type_amnt
    Thanks

    user10624672 wrote:
    Hi,
    Please find my query below, I need a help to avoid duplication of **where** clause in my query.
    In my below query, **JOIN** condition is same for both the queries and **WHERE** condition also same except this clause "and code.code_name="transaction_1"
    In **IF ** condition only credit and debit is swapped on both queries, due to this **Credit and Debit** and this where clause "and code.code_name="transaction_1" I am duplicating the query. Can you please give some solution to avoid this duplication. I am using oracle 11g
    select DAY as business_date,sum(amount) as AMOUNT, type_amnt as amount_type,test_code as code_seg
    from
    select table1_alias.date as DAY,code.code_numb as test_code,
    CASE
    WHEN qnty_item > 0 THEN 'credit'
    ELSE 'debit'
    END as type_amnt,
    "25.55" as amount
    from
    code_table code,
    table1 table1_alias
    join table2 table2_alias on table1_alias.id = table2_alias.id
    where
    table1_alias.state="OK"
    and table1_alias.type="R"
    and code.code_type="Movie"
    and code.code_name="transaction_1"
    UNION ALL
    select table1_alias.date as DAY,code.code_numb as test_code,
    CASE
    WHEN qnty_item > 0 THEN 'debit'
    ELSE 'credit'
    END as type_amnt,
    "25.55" as amount
    from
    code_table code,
    table1 table1_alias
    join table2 table2_alias on table1_alias.id = table2_alias.id
    where
    table1_alias.state="OK"
    and table1_alias.type="R"
    and code.code_type="Movie"
    and code.code_name="transaction_2"
    group by DAY, test_code,type_amnt
    ThanksA very brief glance and it looks to me like the only difference between the 2 queries are
    and code.code_name="transaction_1"In the first portion and
    and code.code_name="transaction_2"So if that's all that is difference, you'd just want to use a single query (no union's) with
    and code.code_name in ('transaction_1', 'transaction_2')Cheers,

  • How to avoid repeating printing in oracle applications

    we have a report which is printing repeatedly for a particular report, what could be the reason?

    Hi,
    Is this concurrent program scheduled?
    Do you mean it keeps printing after the request is completed normally every 10 minutes?
    Is this a standard or custom concurrent program? Can you reproduce the issue with other programs?
    Regards,
    Hussein

  • How to avoid Line Items(fields) in BAPI mapping.

    Hi
    Does any body help me for mapping between header and line items in BAPI..
    my scenario is filerfcmail(wokflow)!
    File is CSV based :
    (ex: 001150,,1123,JERM,08122006,,,
         ,,,ANN,,01082006,
    If you look at example csv file , there is some fields mixed with header and line items. But in RFC header can be 1 to 1 and line item should be 0 to Unbound.
    Now my problem is if I sent above example csv file as source :
    The payload coming like this(sxmb_moni) :
    </HEADERDATA>
    - <GLACCOUNTDATA>
    - <item>
      <COSTCENTER />
      <PROFIT_CTR />
      </item>
    - <item>
      <GL_ACCOUNT>738100</GL_ACCOUNT>
      <ITEM_AMOUNT>60000</ITEM_AMOUNT>
      <COMP_CODE>001150</COMP_CODE>
      <ITEM_TEXT>*777-8030-861</ITEM_TEXT>
      <COSTCENTER>7320</COSTCENTER>
      <PROFIT_CTR>7320</PROFIT_CTR>
      <ALLOC_NMBR />
      </item>
    - <item>
      <GL_ACCOUNT>738100</GL_ACCOUNT>
      <ITEM_AMOUNT>40000</ITEM_AMOUNT>
      <COMP_CODE>001151</COMP_CODE>
      <ITEM_TEXT>*777-8030-861</ITEM_TEXT>
      <COSTCENTER>6010</COSTCENTER>
      <PROFIT_CTR>6010</PROFIT_CTR>
      <ALLOC_NMBR />
      </item>
      <item />
      </GLACCOUNTDATA>
    You can find there is one more item coming after headerdata with null values. It means map reading first line and one by one , if any field found in rows which belogs to GLAccount(Line item), then it writing one more item after headerdata with that fields only.
    Remainig GLAccount data coming as per map after the item .
    Can you tell me how to avoid extra line items.
    Thanks,
    Sankar

    Yes, It exist..
    I cross checked ..with out givig fileds and giving some fields...its writing another items in after headerdata tag.
    hope you understand , what my problem..
    See: GLACCOUNTDATA under subnode
          item is 0 to unbound in BAPI side, because of this its reading all rows , and if find any field which belongs to GLAccount , then it writing another item tag after headerr data.
    Thnaks,
    Sankar

  • How to avoid the event has been repeated many times in the background

    Application, the main screen is divided into two containers:left and  right container,
    The right side of the container is divided into two containers:top and  bottom container,
    There is a button in the left container.
    Click the button, the container at lower right will using ModuleManager  load Module,  The following container load of the right of the screen  has been monitoring the container above the action.
    Problem:
    When you click the button repeatedly to load the container in the lower  right, it will create multiple instances, and can not be freed  immediately. When the above container do an action or event, there are  multiple instances of monitoring exist.
    The background will be repeat the action or event many times.
    How to avoid the event has been repeated many times in the background?
    Thanks

    Flex harUI
    multiple instances of a mxml, maybe ?

  • PDF template : how to have a multiple pages repeating field group

    Hello,
    I'm trying to create a PDF template.
    My problem is that my repeating field group is composed of 2 pages, so what my request has to generate will be N * 2 pages.
    But when I put the <?rep_field="BODY_START"?> and the <?rep_field="BODY_END"?> on two different pages, I can't generate the output.
    It looks like those BODY_START and BODY_END has to be on the same page.
    Could anyone confirm and/or provide help regarding my issue ?
    Thanks in advance.
    Regards,
    Nicolas

    Nicolaus, it appears as if Oracle is not willing to support templates generated using Adobe. They give us over a hundred pages on how to define an rtf template and then spend a measly 15 pages on PDF Templates. I have been successful in creating their example using the PO in the User Guide, but unsuccessful in repeating the outer group(which they don't tell you how to do or provide examples). So in summary you can print one PO at a time and the feature works great, but try to print more than one and you are screwed. Maybe it is time for someone from Oracle to make a post and make a believer out of all of us.

  • How to avoid duplicates values from alvgird see below code

    how to avoid duplicates values from alvgird see below code
    in below query docno no is repeated again and again
    how i can avoid duplication in this query.
    select * into corresponding fields of table itab
             from  J_1IEXCHDR
                     inner join  J_1IEXCDTL
                        on  J_1IEXCDTLlifnr =  J_1IEXCHDRlifnr
                     where  J_1IEXCHDr~status = 'P'.

    Hi Laxman,
    after that select statement
    select * into corresponding fields of table itab
    from J_1IEXCHDR
    inner join J_1IEXCDTL
    on J_1IEXCDTLlifnr = J_1IEXCHDRlifnr
    where J_1IEXCHDr~status = 'P'.
    <b>if sy-subrc = 0.
    delete adjucent duplicates from itab comparing <field name of itab internal table>
    endif.</b>
    this will delete your duplicate entries.once you done with this call the alv FM.
    <b>  call function 'REUSE_ALV_GRID_DISPLAY'</b>
    exporting
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
       i_callback_program                = v_repid
      I_CALLBACK_PF_STATUS_SET          = ' '
      I_CALLBACK_USER_COMMAND           = 'IT_USER_COMMAND'
      I_CALLBACK_TOP_OF_PAGE            = ' '
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
       i_grid_title                      = 'Purchase Order Details'
      I_GRID_SETTINGS                   = I_GRID_SETTINGS
       is_layout                         = wa_layout
       it_fieldcat                       = it_fieldcat
      IT_EXCLUDING                      = IT_EXCLUDING
      IT_SPECIAL_GROUPS                 = IT_SPECIAL_GROUPS
       it_sort                           = it_sort
      IT_FILTER                         = IT_FILTER
      IS_SEL_HIDE                       = IS_SEL_HIDE
      I_DEFAULT                         = 'X'
      I_SAVE                            = ' '
      IS_VARIANT                        = IS_VARIANT
       it_events                         = it_event
      IT_EVENT_EXIT                     = IT_EVENT_EXIT
      IS_PRINT                          = IS_PRINT
      IS_REPREP_ID                      = IS_REPREP_ID
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      I_HTML_HEIGHT_TOP                 = 0
      I_HTML_HEIGHT_END                 = 0
      IT_ALV_GRAPHICS                   = IT_ALV_GRAPHICS
      IT_HYPERLINK                      = IT_HYPERLINK
      IT_ADD_FIELDCAT                   = IT_ADD_FIELDCAT
      IT_EXCEPT_QINFO                   = IT_EXCEPT_QINFO
      IR_SALV_FULLSCREEN_ADAPTER        = IR_SALV_FULLSCREEN_ADAPTER
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           = E_EXIT_CAUSED_BY_CALLER
      ES_EXIT_CAUSED_BY_USER            = ES_EXIT_CAUSED_BY_USER
        tables
    <b>      t_outtab                          = ITAB</b>
    exceptions
       program_error                     = 1
       others                            = 2
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    Thanks
    Vikranth Khimavath

  • Can I avoid repeating heading information?

    Can I avoid repeating heading information if repeated in a same page.
    This occurs due to group on a field which causes it to display again heading information. The heading information should be displayed only once on each page.
    How can I avoid this?
    Thanx
    Regards,
    Vikas

    Hi,
    Create another repeating frame as parent frame of current repeating frame, and with same source. Then put all heading in this parent frame, set Maximum Record per Page = 1.

  • How to avoid the duplicate values, I do not want the duplicate............

    i have one database table called "sms1" that table is updated every day or on daily basis it has the following fields in it:
    SQL> desc sms1;
    Name Null? Type
    MOBILE NUMBER
    RCSTCNATCNATCNATCNAWTHER VARCHAR2(39 CHAR)
    SNO NUMBER
    INDATE DATE
    From this table the is one column "RCSTCNATCNATCNATCNAWTHER VARCHAR2(39 CHAR)" . I am splitting it into different columns like :
    SQL> desc smssplit;
    Name Null? Type
    R VARCHAR2(2 CHAR)
    C VARCHAR2(2 CHAR)
    S VARCHAR2(1 CHAR)
    TC VARCHAR2(3 CHAR)
    NA VARCHAR2(3 CHAR)
    TC2 VARCHAR2(3 CHAR)
    NA2 VARCHAR2(3 CHAR)
    TC3 VARCHAR2(3 CHAR)
    NA3 VARCHAR2(3 CHAR)
    TC4 VARCHAR2(3 CHAR)
    NA4 VARCHAR2(3 CHAR)
    WTHER VARCHAR2(10 CHAR)
    SNO NUMBER
    INSERTDATA VARCHAR2(25 CHAR)
    Now I am written a procedure to insert the data from "Sms1" table to smssplit table...
    CREATE OR REPLACE PROCEDURE SPLITSMS
    AS
    BEGIN
    INSERT INTO scott.SMSSPLIT ( R,C,S,TC,NA,TC2,NA2,TC3,NA3,TC4,NA4,WTHER,SNO)
    SELECT SUBSTR(RCSTCNATCNATCNATCNAWTHER,1,2) R,
    SUBSTR(RCSTCNATCNATCNATCNAWTHER,3,2) C,
    SUBSTR(RCSTCNATCNATCNATCNAWTHER,5,1) S,
    SUBSTR(RCSTCNATCNATCNATCNAWTHER,6,3) TC,
    SUBSTR(RCSTCNATCNATCNATCNAWTHER,9,3) NA,
    SUBSTR(RCSTCNATCNATCNATCNAWTHER,12,3) TC2,
    SUBSTR(RCSTCNATCNATCNATCNAWTHER,15,3) NA2,
    SUBSTR(RCSTCNATCNATCNATCNAWTHER,18,3) TC3,
    SUBSTR(RCSTCNATCNATCNATCNAWTHER,21,3) NA3,
    SUBSTR(RCSTCNATCNATCNATCNAWTHER,24,3) TC4,
    SUBSTR(RCSTCNATCNATCNATCNAWTHER,27,3) NA4,
    SUBSTR(RCSTCNATCNATCNATCNAWTHER,30,10) WTHER, SNO
    FROM scott.SMS1 where SNO=(select MAX (sno) from SMS1);
    END;
    Now in order to update the second table with data from first table on regular basis I have written a job scheduler and I am using oracle 9.0. version...
    DECLARE
    X NUMBER;
    JobNumber NUMBER;
    BEGIN
    SYS.DBMS_JOB.SUBMIT
    job => X
    ,what => 'scott.SPLITSMS;'
    ,next_date => SYSDATE+1/1440
    ,interval => 'SYSDATE+1/1440 '
    ,no_parse => FALSE
    :JobNumber := to_char(X);
    END;
    Now this job scheduler is working properly and updating the data for every one minute but it is taking or updating the duplicate values also ..like example:
    R C S TC NA TC2 NA2 TC3 NA3 TC4 NA4 WTHER SNO
    INSERTDATA
    33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
    06-SEP-2012 03:49:16
    33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
    06-SEP-2012 03:49:16
    33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
    06-SEP-2012 03:50:17
    R C S TC NA TC2 NA2 TC3 NA3 TC4 NA4 WTHER SNO
    INSERTDATA
    33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
    06-SEP-2012 03:50:17
    33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
    06-SEP-2012 03:51:19
    33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
    06-SEP-2012 03:51:19
    R C S TC NA TC2 NA2 TC3 NA3 TC4 NA4 WTHER SNO
    INSERTDATA
    33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
    06-SEP-2012 03:52:20
    33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
    06-SEP-2012 03:52:20
    33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
    06-SEP-2012 03:53:22
    R C S TC NA TC2 NA2 TC3 NA3 TC4 NA4 WTHER SNO
    INSERTDATA
    33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
    06-SEP-2012 03:53:22
    33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
    06-SEP-2012 03:54:45
    33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
    06-SEP-2012 03:54:45
    Now I do not want the duplicate values to be updated ...and want them to ignore them.....
    please I need a help on this query........How to avoid the duplicate values............

    Look at the posts closely:might not be needed if formatted ;)
    create or replace procedure splitsms as
    begin
      insert into scott.smssplit (r,c,s,tc,na,tc2,na2,tc3,na3,tc4,na4,wther,sno)
      select substr(rcstcnatcnatcnatcnawther,1,2) r,
             substr(rcstcnatcnatcnatcnawther,3,2) c,
             substr(rcstcnatcnatcnatcnawther,5,1) s,
             substr(rcstcnatcnatcnatcnawther,6,3) tc,
             substr(rcstcnatcnatcnatcnawther,9,3) na,
             substr(rcstcnatcnatcnatcnawther,12,3) tc2,
             substr(rcstcnatcnatcnatcnawther,15,3) na2,
             substr(rcstcnatcnatcnatcnawther,18,3) tc3,
             substr(rcstcnatcnatcnatcnawther,21,3) na3,
             substr(rcstcnatcnatcnatcnawther,24,3) tc4,
             substr(rcstcnatcnatcnatcnawther,27,3) na4,
             substr(rcstcnatcnatcnatcnawther,30,10) wther,
             sno
        from scott.sms1 a
       where sno = (select max(sno)
                      from sms1
                     where sno != a.sno
                   ); ---------------> added where clause with table alias.
    end;Regards
    Etbin

Maybe you are looking for