Solved

XML Tag - Remove Duplicates from Excel

Posted on 2013-01-01
1
523 Views
Last Modified: 2013-08-11
Hi All,

   I am trying to use XML to load data from sql query in to excel.... But in Excel, I am getting duplicate records.... How I can remove duplicates.... Any XML tags to remove duplicates,...

Please find my xml, rtf and excel output attached....

Thanks
Aman
XXALMPAPROJREP-1.1.xml
sample-output.xlsx
XXALMPAPROJREP-2.0.doc
0
Comment
Question by:amankhan
1 Comment
 
LVL 37

Accepted Solution

by:
Gerwin Jansen earned 500 total points
ID: 38734564
How many records are in XXALM_PROJECT_REPORT_T and how is that table organized? I see a column PROJECT_NUMBER that will be the key for the table XXALM_PROJECT_REPORT_T but if I look at for example: PROJECT_NUMBER=St.Regis-DEV-ABD-JO and TASK_NUMBER=2.1 I see 5 records in your sample output but the last column has unique values, so no 'double' output as far as I can see.

Can you do this select and look at the output you get:

select * from XXALM_PROJECT_REPORT_T
where PROJECT_NUMBER='St.Regis-DEV-ABD-JO' and TASK_NUMBER='2.1';
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now