Quantcast
Channel: General Discussion
Viewing all articles
Browse latest Browse all 204

Dublicates removing

$
0
0

Hello !

I've got such sample:

Field1,Field2

2020-12-01 01:54:40.112000,1521.731812
2020-12-01 01:54:41.112000,1521.731812
2020-12-01 01:54:42.112000,1521.731812
2020-12-01 01:54:43.112000,1521.695557
2020-12-01 01:54:44.112000,1521.695557
2020-12-01 01:54:45.112000,1521.731812
2020-12-01 01:54:46.112000,1521.695557
2020-12-01 01:54:47.112000,1521.695557
2020-12-01 01:54:48.112000,1521.695557
2020-12-01 01:54:49.112000,1521.695557
2020-12-01 01:54:50.112000,1521.695557
2020-12-01 01:54:51.112000,1521.695557
2020-12-01 01:54:52.112000,1521.695557
2020-12-01 01:54:53.112000,1521.695557
2020-12-01 01:54:54.112000,1521.695557
2020-12-01 01:54:55.112000,1521.695557
2020-12-01 01:54:56.112000,1521.695557

2020-12-01 01:54:57.112000,1521.695557
2020-12-01 01:54:58.112000,1521.695557
2020-12-01 01:54:59.112000,1521.695557
2020-12-01 01:55:00.112000,1521.695557
2020-12-01 01:55:01.112000,1521.695557
2020-12-01 01:55:02.112000,1521.695557
2020-12-01 01:55:03.112000,1521.695557
2020-12-01 01:55:04.112000,1521.695557
2020-12-01 01:55:05.112000,1521.695557
2020-12-01 01:55:06.112000,1521.695557
2020-12-01 01:55:07.112000,1521.695557
2020-12-01 01:55:08.112000,1521.695557
2020-12-01 01:55:09.112000,1521.695557
2020-12-01 01:55:10.112000,1521.695557
2020-12-01 01:55:11.112000,1521.695557
2020-12-01 01:55:12.112000,1521.695557
2020-12-01 01:55:13.112000,1521.695557
2020-12-01 01:55:14.112000,1521.695557
2020-12-01 01:55:15.112000,1521.695557
2020-12-01 01:55:16.112000,1521.695557
2020-12-01 01:55:17.112000,1521.695557
2020-12-01 01:55:18.112000,1521.623291
2020-12-01 01:55:19.112000,1521.695557
2020-12-01 01:55:20.112000,1521.695557
2020-12-01 01:55:21.112000,1521.695557

I need such result:

2020-12-01 01:54:40.112000,1521.731812
2020-12-01 01:54:43.112000,1521.695557
2020-12-01 01:54:45.112000,1521.731812
2020-12-01 01:54:46.112000,1521.695557
2020-12-01 01:55:18.112000,1521.623291
2020-12-01 01:55:19.112000,1521.695557

How to exclude dublicates in Field2?

The query "SELECT MIN(Field1), Field2 FROM 'c:\test\test1.csv' GROUP BY Field2 HAVING COUNT(*)>1" shows

2020-12-01 01:54:40.112,1521.7318
2020-12-01 01:54:43.112,1521.6956

Best regards


Viewing all articles
Browse latest Browse all 204

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>