We help IT Professionals succeed at work.
Get Started

Synchronize for DataTable (find duplicates)

848 Views
Last Modified: 2013-12-16
Hi,

I've a DataTables I need to convert to a new one.
The data are local loaded one and also I get more datas from a web service to one DT in memory.
Now I need to copy the data to an other DT but some records are duplicate.
There's a field called 'State' and value 1 has a higher priority than 0.
E.g.
Row0:
ID = 4711
Name = Test
State = 0
Row1:
ID = 4711
Name = Test
State = 1

In this case I like to get  4711 from Row1 as State has the higher priority there.

What do you suggest to copy my data into a new table excluding the duplicates with low priority?

Thanks,

Andre
Comment
Watch Question
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE