2
Answers

Filtering duplicate data received

Loh Jy

Loh Jy

9y
500
1
Currently I am working on 2 com port. Both com port will be on and my textbox will receive the data. But there are chances that both com port will receive the identical set of data (Common time, unit, temperature). As a result i only want to record down one set of data.
How should i counter this problem? I'm new with c# prog. 
Answers (2)
0
Khan Abrar Ahmed

Khan Abrar Ahmed

NA 6.5k 199.6k 9y
Hi use the distinct set or compare each property if you want the single records.
Accepted
0
Loh Jy

Loh Jy

NA 17 2.3k 9y
Yup thanks! Have already solved the problem :)
 
Instead of using the SELECT clause, i used SELECT DISTINCT and it work perfectly !