Remove the duplicate value

hi,
i want to print distinct value
example data is given below :
Jv.No hl.no col1 col2 col3 col4 col5
1 a12 xx yy zz 11 21
b23 xx yy zz 11 21
actuallly i m not printig the hl.no in his report , for u r reference i will show to u
col1 to col 5 values printing based on the serial
jval , jserial two columns
i am writing the code in formula column
if jserial=1 then
print jval ( for that serial wat value is stored in the table that should return)
like upto serial 5 should print
col1 to col5 all the values are same only it should print distinct value
like this
Jv.No col1 col2 col3 col4 col5
1 xx yy zz 11 21
otherwise any one value is varrying as usaualawahtever is there that only print
Jv.No col1 col2 col3 col4 col5
1 xx yy zz 11 21
xx yy zz 154 21
need o/p like this :
Jv.No col1 col2 col3 col4 col5
1 xx yy zz 11 21
xx yy zz 154 21

hi,
job no mblno carrier vsl voy lport dport
111 2000 misc hanjin 12E sl UK
misc hanjin 12E sl UK
job no & mbol no is one group
remainings values another group.
carrier , vsl , voy , lport,dport these values fetches from the column of JOB_DESC
data's strored in the table like this:
jobparent Job desc jobserial
1 misc 1
1 hanjin 2
1 12E 3
1 sl 4
1 UK 5
2 misc 1
2 hanjin 2
2 12E 3
2 sl 4
2 UK 5
i am writing the formula column in the datamodel of second group.
if jobserial = 1 then print the value of Misc in carrier , job_serial=2 then print the value of Hanjin into vsl column.
i need to avoid the duplicate value :
job no mblno carrier vsl voy lport dport
111 2000 misc hanjin 12E sl UK
misc hanjin 12E sl UK -- This line not required
suppose carrier,voy or any one value is different then i need to print all the data
job no mblno carrier vsl voy lport dport
111 2000 misc hanjin 12E sl UK
ABCc hanjin 34D sl UK

Similar Messages

  • Read two CSV files and remove the duplicate values within them.

    Hi,
    I want to read two CSV files(which contains more than 100 rows and 100 columns) and remove the duplicate values within that two files and merge all the unique values and display it as a single file.
    Can anyone help me out.
    Thanks in advance.

    kirthi wrote:
    Can you help me....Yeah, I've just finished... Here's a skeleton of my solution.
    The first thing I think you should do is write a line-parser which splits your input data up into fields, and test it.
    Then fill out the below parse method, and test it with that debugPrint method.
    Then go to work on the print method.
    I can help a bit along the way, but if you want to do this then you have to do it yourself. I'm not going to do it for you.
    Cheers. Keith.
    package forums.kirthi;
    import java.util.*;
    import java.io.PrintStream;
    import java.io.BufferedReader;
    import java.io.FileReader;
    import java.io.IOException;
    import krc.utilz.io.ParseException;
    import krc.utilz.io.Filez.LineParser;
    import krc.utilz.io.Filez.CsvLineParser;
    public class DistinctColumnValuesFromCsvFiles
      public static void main(String[] args) {
        if (args.length==0) args = new String[] {"input1.csv", "input2.csv"};
        try {
          // data is a Map of ColumnNames to Sets-Of-Values
          Map<String,Set<String>> data = new HashMap<String,Set<String>>();
          // add the contents of each file to the data
          for ( String filename : args ) {
            data.putAll(parse(filename));
          // print the data to output.csv
          print(data);
        } catch (Exception e) {
          e.printStackTrace();
      private static Map<String,Set<String>> parse(String filename) throws IOException, ParseException {
        BufferedReader reader = null;
        try {
          reader = new BufferedReader(new FileReader(filename));
          CsvLineParser.squeeze = true; // field.trim().replaceAll("\\s+"," ")
          LineParser<String[]> parser = new CsvLineParser();
          int lineNumber = 1;
          // 1. read the column names (first line of file) into a List
          // 2. read the column values (subsequent lines of file) into a List of Set's of String's
          // 3. build a Map of columnName --> columnValues and return it
        } finally {
          if(reader!=null)reader.close();
      private static void debugPrint(Map<String,Set<String>> data) {
        for ( Map.Entry<String,Set<String>> entry : data.entrySet() ) {
          System.out.println("DEBUG: "+entry.getKey()+" "+Arrays.toString(entry.getValue().toArray(new String[0])));
      private static void print(Map<String,Set<String>> data) {
        // 1. get the column names from the table.
        // 2. create a List of List's of String's called matrix; logically [COL][ROW]
        // 3. print the column names and add the List<String> for this col to the matrix
        // 4. print the matrix by inerating columns and then rows
    }

  • Removing the Duplicate Values from output without using Keyword DISTINCT

    Hi,
    I'm running the below query without DISTINCT Keyword and getting Duplicate results. can you please tell me what needs to be done if I want unique values without using Distinct.
    select hra.Location_code
    ,hra.Description
    ,hra.Address_line_1
    ,hra.Address_line_2
    ,hra.Address_line_3
    ,hra.town_or_city
    ,hra.Region_1
    ,hra.Postal_Code
    ,hra.country
    ,hra.attribute1
    ,hra.attribute5
    ,hra.attribute6
    ,hra.attribute8
    ,hra.attribute9
    ,hra.attribute2
    ,hra.attribute3
    ,hra.attribute4
    ,hra.attribute7
    ,hra.attribute10
    from hr_locations_all hra
    ,per_all_people_f papf
    ,per_person_types ppt
    , per_person_type_usages_f pptuf
    ,hr_all_organization_units haou
    ,hr_all_organization_units haou1
    where 1=1
    and hra.business_group_id = papf.business_group_id
    and hra.business_group_id = ppt.business_group_id
    and pptuf.person_id = papf.person_id
    and pptuf.person_type_id = ppt.person_type_id
    and ppt.system_person_type = 'EMP'
    and ((hra.inactive_date is null) or (trunc(hra.inactive_date)>= to_date('01/01/2012','mm/dd/yyyy')))
    and to_date('01/01/2012','mm/dd/yyyy') between trunc(pptuf.effective_start_date) and trunc(pptuf.effective_end_date)
    and((papf.effective_end_date is null) or (trunc(papf.effective_end_date)>= to_date('01/01/2012','mm/dd/yyyy')))
    and ((haou1.date_to is null) or (trunc(haou1.date_to)>= to_date('01/01/2012','mm/dd/yyyy')))
    and papf.business_group_id = haou.organization_id
    and hra.location_id = haou1.location_id;

    Hi,
    Try using this Code
    select hra.Location_code
    ,hra.Description
    ,hra.Address_line_1
    ,hra.Address_line_2
    ,hra.Address_line_3
    ,hra.town_or_city
    ,hra.Region_1
    ,hra.Postal_Code
    ,hra.country
    ,hra.attribute1
    ,hra.attribute5
    ,hra.attribute6
    ,hra.attribute8
    ,hra.attribute9
    ,hra.attribute2
    ,hra.attribute3
    ,hra.attribute4
    ,hra.attribute7
    ,hra.attribute10
    from hr_locations_all hra
    ,per_all_people_f papf,
    per_all_assignments_f paaf,
    per_person_types ppt
    , per_person_type_usages_f pptuf
    ,hr_all_organization_units haou
    --,hr_all_organization_units haou1
    where 1=1
    and
    hra.business_group_id = papf.business_group_id
    and hra.business_group_id = ppt.business_group_id
    and pptuf.person_id = papf.person_id
    and papf.person_id=paaf.person_id
    and pptuf.person_type_id = ppt.person_type_id
    and ppt.system_person_type = 'EMP'
    --and ((hra.inactive_date is null) or (trunc(hra.inactive_date)>= to_date('01/01/2012','mm/dd/yyyy')))
    and to_date('01/01/2012','mm/dd/yyyy') between trunc(pptuf.effective_start_date) and trunc(pptuf.effective_end_date)
    --and((papf.effective_end_date is null) or (trunc(papf.effective_end_date)>= to_date('01/01/2012','mm/dd/yyyy')))
    --and((paaf.effective_end_date is null) or (trunc(paaf.effective_end_date)>= to_date('01/01/2012','mm/dd/yyyy')))
    and to_date('01/01/2012','mm/dd/yyyy') between trunc(papf.effective_start_date) and trunc(papf.effective_end_date)
    and to_date('01/01/2012','mm/dd/yyyy') between trunc(paaf.effective_start_date) and trunc(paaf.effective_end_date)
    --and ((haou1.date_to is null) or (trunc(haou1.date_to)>= to_date('01/01/2012','mm/dd/yyyy')))
    --and papf.business_group_id = haou.organization_id
    and paaf.location_id=hra.location_id
    and paaf.organization_id=haou.organization_id
    --and papf.employee_number='1010008830'
    and hra.location_id = haou.location_id;

  • This field contains duplicate values. Remove all duplicate values and try the operation again.

    Greetings Everyone,
    I am getting the follow up errors: "This field contains duplicate values. Remove all duplicate values and try the operation again."
    when I tried to make the field "Claim Number" from the list in site collection library. See the screen below:
    1- I selected on the "List" and I clicked on the list name
    "Claim Tracking Report"
    2- After I clicked on the list name then I went to the ribbon and selected list setting to choose Enforce Unique for the Field Column
    "Claim Number"
    3- Then I went down and selected
    "Yes" to Enforced the Unique for the Field Column "Claim Number".
    4- Then after I clicked "Yes" I got the error
    "Sorry, something went wrong. This field contains duplicate values. Remove all duplicate values and try the operation again."  But I don't have any duplicates values Items, because I had them removed before I tried
    to Enforce the field column values to Unique. Can someone help or provide me a suggestions on how I can solve this issue please. Thank you
    FYI: I am using a Nintex Workflow

    Hope this is a list, how many total items are there?
    Please try to open this list as access(link in IE) and run this query in access
    SELECT Claim.[Claim Number], Count(*) AS Expr1
    FROM Claim
    GROUP BY Claim.[Claim Number]
    HAVING (((Count(*))>1));
    Hope it will show something! if this does not show you dups then better to create a separate list and migrate items after configuring unique column.
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • How to restrict the duplicate values in lov column of VO based Adv Table

    Hi Gurus,
    I want to restrict the duplicate values at lov which is a colunm in an Adv Table.
    If user enters duplicate values then first it should show an error msg that Duplicate values have been entered.
    After the duplicate values have been removed, then the user can save all the values in the table.
    My Adv Table is based on a VO.
    The link how to restrict the duplicate values at form level
    talks about Adv Table based on a EoVO, which doesnot work in my case.
    My Approach,
    I am iterating through RowSetIterator and committing through PROCEDURE.
    I am able to avoid duplicate entry through a function checkRespId. (given below)
    Below code is for iterating and committing.
    public void saveline(String reqid,String userid)
    System.out.println("RequestId/saveline"+reqid);
    System.out.println("UserId/saveline"+userid);
    OAViewObject vo = (OAViewObject)getRespLineVO1();
    RespLineVORowImpl row = null;
    int fetchedRowCount = vo.getFetchedRowCount();
    RowSetIterator deleteIter = vo.createRowSetIterator("deleteIter");
    if (fetchedRowCount > 0)
    deleteIter.setRangeStart(0);
    deleteIter.setRangeSize(fetchedRowCount);
    for (int i = 0; i < fetchedRowCount; i++)
    System.out.println("Inside the for LOOP");
    row = (RespLineVORowImpl)deleteIter.getRowAtRangeIndex(i);
    String respoidid = row.getAttribute("ResponsibilityId")+"";
    String respname = row.getAttribute("ResponsibilityName")+"";
    String stdate = row.getAttribute("StartDate")+"";
    String enddate = row.getAttribute("EndDate")+"";
    String linestatus ="A";
    if(userid!=null)
    if(!(respoidid.equals("null")) && respoidid!=null)
    String checkingrespid=null;
    checkingrespid = checkRespId(userid,respoidid);+contains no if not duplicate and yes if its duplicate+
    System.out.println("checkingrespid for Resp with ID :"+respoidid+"exists or not "+checkingrespid);
    if(checkingrespid.equals("No"))
         String message, result = null;
    Connection txn = getOADBTransaction().getJdbcConnection();
    try
    calling PROC ...
    catch(Exception e)
    message = "Error in Inserting into line" + e;
    throw new OAException(message, OAException.ERROR);
    else
    throw new OAException("You have entered duplicate no. of values", OAException.ERROR);
    else
    System.out.println("respoidid is null");
    break;
    deleteIter.closeRowSetIterator();
    public String checkRespId(String userid,String respoidid)
    String createRow="No";
    OAViewObject vo = (OAViewObject)findViewObject("CheckRespVO1");
    if (vo != null)
    vo.setWhereClauseParams(null);
    vo.setWhereClauseParam(0, userid);
    vo.setWhereClauseParam(1, respoidid);
    vo.executeQuery();
    System.out.println("ROW COUNT IS "+vo.getRowCount());
    if(vo.getRowCount()>0)
    createRow="Yes";
    else
    createRow="No";
    return createRow;
    Problem:
    I remove the duplicate entries and click on save and get this error.
    Unable to perform transaction on the record. \nCause: The record contains stale data. The record has been modified by another user.
    \nAction: Cancel the transaction and re-query the record to get the new data.
    Thanks,
    Sombit

    Hi Anil,
    I am trying out your code but stuck in inserting the rows
    using your code in URL: http://oracleanil.blogspot.com/2010/09/oaf-passing-table-type-object-to-oracle.html
    I am always getting the same exception i.e COde blast in when I run.
    My modified code is:
    String[] as = null;
    Number[] vNumber = null;
    Number[] vNumberrespid = null;
    Number reqidnumber = null;
    reqidnumber = new Number(Integer.parseInt(reqid));
    Connection txn = getOADBTransaction().getJdbcConnection();
    String mCreateSearchRequestStatement = null;
    OAViewObject vo = (OAViewObject)findViewObject("RespLineVO1");
    int j = vo.getFetchedRowCount();
    try
    System.out.println("abouce try");
    vo.reset();
    if (vo.getFetchedRowCount() > 0)
    System.out.println(String.valueOf("Fetched row count ").concat(String.valueOf(vo.getFetchedRowCount())));
    int i = 0;
    as = new String[j];
    vNumber = new Number[j];
    vNumberrespid = new Number[j];
    while (vo.hasNext())
    vo.next();
    System.out.println(String.valueOf("Inisde the do while loop").concat(String.valueOf(i)));
    vNumber[i] = (reqidnumber);
    vNumberrespid = ((Number)vo.getCurrentRow().getAttribute("ResponsibilityId"));
    as[i] = String.valueOf(vo.getCurrentRow().getAttribute("ResponsibilityName")).concat(String.valueOf(""));
    System.out.println("Request ID "+reqidnumber[i]);//getting null even there is some value selected
    System.out.println("ResponsibilityId "+vNumberrespid[i]);//getting null even there is some value selected
    System.out.println("Resp Name "+as[i] );//getting null even there is some value selected
    i++;
    CallableStatement cs = txn.prepareCall("{call XX_PassTableType.XX_PassTableType_prc(:1, :2,:3)}");
    ARRAY array = new ARRAY(new ArrayDescriptor("APPS.JTF_NUMBER_TABLE", txn), txn, vNumber);
    ARRAY arraynew = new ARRAY(new ArrayDescriptor("APPS.JTF_NUMBER_TABLE", txn), txn, vNumberrespid);
    ARRAY array1 = new ARRAY(new ArrayDescriptor("APPS.JTF_VARCHAR2_TABLE_100", txn), txn, as);
    cs.setArray(1, array);
    cs.setArray(2, arraynew);
    cs.setArray(3, array1);
    cs.registerOutParameter(3, 2003, "JTF_VARCHAR2_TABLE_100");
    cs.execute();
    ARRAY error = null;
    error = (ARRAY)cs.getArray(2);
    if ((error != null) && (error.length() > 0))
    System.out.println(String.valueOf("Error is ").concat(String.valueOf(error.getArray())));
    String[] retError = new String[j];
    retError = (String[])error.getArray();
    System.out.println(String.valueOf("Error in saving data").concat(String.valueOf(retError[0])));
    cs.close();
    catch (Exception exception)
    throw new OAException("code blast", OAException.ERROR);
    Thanks,
    Sombit

  • Help needed in removing the duplicate nodes in an xml file

    Hi Friends,
    I need some help in removing the duplicates from a xml file using the Excel Spreadsheet. The xml Im using does not have any schema.
    Can some one please let me know the steps.
    Thanks a lot.

    Hi,
    I got the answer.
    Go to the developers Tab and click on export.
    Select the column where we want to delete the duplicates and click on Remove Duplicates from Data Tab.
    OR go to Home Tab> Conditional Formatting> High light Cell Rules> Duplicate Values. It will highlight all the duplicate values and then remove them manually.
    Thanks.

  • How to remove the duplicate Columns in Multiple Rows?

    Hi,
    I want to remove the duplicate columns in a Multiple Rows.
    For example:
    Now i'm getting the output like this
    S_NO Order_number Assy_item Assy_Desp Item_Number
    1     S3123 12345 TEST     *1245*
    2     S3123 12345 TEST     *1256*
    3     S3123 12345 TEST     *1289*
    4     S3123 12345 TEST     *1223*
    5     S4123 42345 SAMPLE *4568*
    6     S4123 42345 SAMPLE *5656*
    7     S4123 42345 SAMPLE *4558*
    the Original output should be like this
    S_NO Order_number Assy_item Assy_Desp Item_Number
    1     S3123 12345 TEST     *1245*
    2                         *1256*
    3                         *1289*
    4                         *1223*
    5     S4123 42345 SAMPLE *4568*
    6                         *5656*
    7                         *4558*
    note: Alignment Problem all the Bold Numbers are Item Number(Last Column)*
    i'm using XML and RTF template.
    RTF Template is a Basic Table like Structure
    i pasted the XML code below
    <?xml version="1.0" encoding="UTF-8"?>
    <dataTemplate name="items" version="1.0">
    <parameters>
    <parameter name="P_DATE" dataType="date"/>
    <parameter name="P_DEPT_NO" dataType="varchar2"/>
    </parameters>
    <dataQuery>
    <sqlStatement name="ROW1">
    <![CDATA[
    SELECT
    SUBSTR(IMGR.ORDER_NUMBER,3,2) MACHINE_NO
    ,IMGR.ORDER_NUMBER
    ,IMGR.ASSY_ITEM_NUMBER
    ,IMGR.ASSEMBLY_DESCRIPTION
    ,IMGR.ITEM_NUMBER
    ,IMGR.ITEM_DESCRIPTION
    ,SUBSTR(IMGR.ORDER_NUMBER,1,2) DEPT_NO
    ,IMGR.PLAN_DESCRIPTION
    FROM XXI.IGL_MRP_GROSS_REQUIREMENTS IMGR
    WHERE IMGR.DEMAND_TYPE IN ('Discrete job','Non-standard job')
    AND IMGR.PLAN_DESCRIPTION ='MRP-PRODUCTION'
    AND IMGR.DEMAND_DATE <= :P_DATE
    AND SUBSTR(IMGR.ORDER_NUMBER,1,2) IN (&P_DEPT_NO)
    ORDER BY
    DEPT_NO
         ,MACHINE_NO
    ,IMGR.ASSEMBLY_DESCRIPTION
    ,IMGR.ASSY_ITEM_NUMBER
    ,IMGR.ORDER_NUMBER
    ,IMGR.ITEM_NUMBER
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_IGLOO_QA_FPI" source="ROW1">
    <element name="MACHINE_NO" value="MACHINE_NO"/>
    <element name="ORDER_NUMBER" value="ORDER_NUMBER"/>
    <element name="ASSY_ITEM_NUMBER" value="ASSY_ITEM_NUMBER"/>
    <element name="ASSEMBLY_DESCRIPTION" value="ASSEMBLY_DESCRIPTION"/>
    <element name="ITEM_NUMBER" value="ITEM_NUMBER"/>
    <element name="ITEM_DESCRIPTION" value="ITEM_DESCRIPTION"/>
    <element name="DEPT_NO" value="DEPT_NO"/>
    <element name="PLAN_DESCRIPTION" value="PLAN_DESCRIPTION"/>
    </group>
    </dataStructure>
    </dataTemplate>
    Please Share your ideas.
    Thank
    Aswath

    hi Ananth,
    i tried the logic but its also not printing the First Line.
    Syntax:
    <?if:ORDER_NUMBER!= ORDER_NUMBER?><?ORDER_NUMBER?><?end if?>
    I think this condition works fine if it is start from second line of the row.
    Output:
    S_NO Order_number Assy_item Assy_Desp Item_Number
    1     12345 TEST     1245
    2     12345 TEST     1256
    No Order_number displayed.
    i hope you got my point. Please help me to get through it.
    Thanks
    Aswath

  • 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

  • Want to remove the default value of a column in a table

    HI
    I have a table called User_ind. This table columns have default values as 'n' like
    create table user_ind(
    ind_num varchar2(1)
    ,group_allowed varchar2(1) default 'y'
    ,view_allowed varchar2(1) default 'y'
    now i want to remove the default values How can i procede with this.
    Urgent .
    Thanks in advance.
    Chaitanya.

    In Oracle 9i you cannot remove the DEFAULT, you can only change it to null:
    alter table user_ind modify group_allowed varchar2(1) default null
    You can check it using this one:
    select table_name,column_name,data_default
    from user_tab_columns
    where table_name = 'USER_IND'
    Best Regards
    Krystian Zieja / mob

  • How stop PS6 from removing the DPI value from an image when using "save for the web"?

    How stop PS6 from removing the DPI-value from an image when using "save for the web"?
    Example:
    - Open a tif image, that contains a dpi value (resolution).
    - Use the splice tool in PS6.
    - Export the slices with "Save for web", as gif-files.
    Then the dpi value is removed, the gif files has no dpi value (it's empty).
    How can we stop PS6 from removing the dpi value when using "save for web"?
    OR:
    When using the slice tool, how can we save the sliced pieces without PS removing the dpi value?

    you can make your art go a little bit over the bounds. or you can make sure your artboart and art edges align to pixels

  • My mac book pro has duplicate photos in my photo library how do I remove the duplicate photos?

    My mac book pro has duplicate photos in my photo library - how do I remove the duplicate photos?

    Duplicate Annihilator
    iPhoto AppleScript to Remove Duplicates
    via Old Toad reply in this thread: https://discussions.apple.com/thread/3122008

  • How to remove the default value of "Inventory No." in Equipment Master

    Hi Experts,
    Need your advise
    How to remove the default value for the field "Inventory No" in Equipment Master? It will goes back to the default value(TRANSIT) when i delete or change the value.
    Thank You
    Best Regards

    i think you cannot default this value from configuration, check is there any screen variant exist for your transactions IE01/IE02, else may be any user exit is active on the equipment master transactions.
    Take help of your ABAPer and verify the above.
    Praveen.

  • Insert data into table 1 but remove the duplicate data

    hello friends,
    i m trying to insert data into table tab0 using hints,
    query is like this..
    INSERT INTO /*+ APPEND PARALLEL(tab0) */ tab NOLOGGING
    (select /*+ parallel(tab1)*/
    colu1,col2
    from tab1 a
    where a.rowid =(select max (b.rowid) from tab2 b))
    but this query takes too much time around 5 hrs...
    bz data almost 40-50 lacs.
    i m using
    a.rowid =(select max (b.rowid) from tab2 b))....
    this is for remove the duplicate data..
    but it takes too much time..
    so please can u suggest me any ohter option to remove the duplicate data so it
    resolved the optimization problem.
    thanks in advance.

    In the code you posted, you're inserting two columns into the destination table. Are you saying that you are allowed to have duplicates in those two columns but you need to filter out duplicates based on additional columns that are not being inserted?
    If you've traced the session, please post your tkprof results.
    What does "table makes bulky" mean? You understand that the APPEND hint is forcing the insert to happen above the high water mark of the table, right? And you understand that this prevents the insert from reusing space that has been freed up because of deleted in the table? And that this can substantially increase the cost of full scans on the table. Did you benchmark the INSERT without the APPEND hint?
    Justin

  • Remove the decimals value

    Dear All,
       Any Idea to remove the  decimals value  from the text ?   my parameter declare as Character type. 
    eg :     i want from 10000.000 become 10000
    thanks

    Dear All,
    Any Idea to remove the decimals value from the text ? my parameter declare as Character type.
    eg : i want from 10000.000 become 10000
    thanks
    hi,
    for this we can use two method one is,
    data : value type p decimals 0.
    value = '10000.000'.
    write : / value.
    Output is = 10000
    Second method,
    data : value type i.
    value = '10000.000'.
    write : / value.
    Output is = 10000
    If u use packed decimals
    data : value type p decimals 1.
    value = '10000.000'.
    write : / value.
    Output is = 10000.0

  • HT4191 How do I get to "When prompted, select Delete Notes to remove the duplicates from the device."?  I can't get to this!

    I have duplicate Notes on my iphone 4 (upgraded to iOS 5.1.1)  I have followed your instructions to remove the duplicates.  How do I get "select Detete Notes" to appear on my Mac?  I have connected my phone to my Mac and selected it in iTunes.  I clicked the Info pane and deselected the option to Sync Notes.  THEN WHAT should I do?  How do I get the prompt "Select Delete Notes to remove the duplicates from the device.  (I do want to sync them using the over-the-air feature.)

    I would try the following:
    First sync your phone with iTunes to create a new backup (just in case).  When done, disconnect your phone from your computer.
    Next be sure that all of your Notes are on your mac (Don't proceed any further if they aren't).  If so, turn off iCloud syncing for Notes on your phone go to Settings>iCloud and turning Notes to Off.  When prompted choose to delete the notes from your phone.
    Next, without connecting your phone to your computer, open iTunes and go to iTunes>Preferences, on the Devices tab check "Prevent...from syncing automatically".
    Now connect your phone to your computer, click on the name of your phone when it appears in iTunes on the left sidebar.
    Go to the Info tab and under Other check Sync Notes, then further down under Advanced: Replace information on this iPhone, check Notes.
    Click Apply at the bottom right to sync your phone.  This should sync the Notes from your mac to your phone and you should no longer have duplicate Notes.
    Next, on the Info tab uncheck Sync Notes and click Apply, when prompted select to keep the Notes on your phone (haven't tested this step but I believe you will be given the option to keep them on your phone).
    Now disconnect your phone from your computer and check the Notes on your phone to confirm that they are still there and that you don't have any duplicates.
    Next turn on iCloud syncing on your phone again by going to Settings>iCloud and turning Notes to On.
    On your computer, without connecting your phone, go back to iTunes>Preferences>Devices and uncheck "Prevent…from syncing automatically" to re-enable automatic syncing.
    That should do it.

Maybe you are looking for

  • Error msg pointing to nonexistent var (WARNING: LONG POST)

    I'm sorry to have to post my entire program, but I keep getting an error msg that points to a variable that is NOWHERE in my code. The var is called PwChar. It's mentioned in the error msg, but is nowhere in my code. This is even after saving and rec

  • Out of the blue, my desktop no longer passes POST.

    So, today when I turned my computer on this morning, it would not pass the POST. I had shutdown my computer the night before with shutdown -h now (like I usually would). I did not move, bump, unplug, plug-in, or change anything at all with the comput

  • Is it a Java Date bug?

    Please take a look at below code: public class Test {      public static void main(String[] args) {           Calendar c1 = Calendar.getInstance();           c1.set(2000, 0, 1, 1, 0, 0); //2000-01-01 01:00:00           long l1 = c1.getTimeInMillis();

  • Error in ASKB after creating parallel & delta depreciation area

    Hi All, We have APC and depreciation values in Area 1 for an Asset. Now I have created parallel depreciation area 70 and delta depreciation area 90. area 70 posting to parallel ledger. As soon as I created area 90, the following values are showing in

  • Adobe Software windows override all other applications.

    Adobe Software windows override all other applications. - Anyone have this issue with CS4 and Leopard? For example: Whenever I'm opening multiple documents in, say, Illustrator CS4, while the windows are opening in the "background" and I'm attempting