Commit 64b201c1 authored by Sergio Bruni's avatar Sergio Bruni
Browse files

c

parent 8fe025ff
......@@ -139,25 +139,3 @@ find . -name 'drag????.16d.Z' -exec bash -c '7z x -o$(dirname "{}") {}' \;
#### identifica i file com md5uncompressed duplicato
```
select t1.id,
t1.name,
COALESCE(n.name, 'NONE'),
t1.md5uncompressed,
t1.md5checksum
from (
select r.id, r.name, r.md5uncompressed, r.md5checksum from rinex_file r
join (
select r.md5uncompressed from rinex_file r
group by md5uncompressed
having count(*) > 1
) t
on t.md5uncompressed = r.md5uncompressed
) t1
left JOIN rinex_file_network rn on rn.id_rinex_file=t1.id
left JOIN network n on n.id=rn.id_network
ORDER BY t1.md5uncompressed
```
......@@ -971,3 +971,27 @@ from (
order by casi
```
#### identifica i file com md5uncompressed duplicato
```
select t1.id,
t1.name,
COALESCE(n.name, 'NONE'),
t1.md5uncompressed,
t1.md5checksum
from (
select r.id, r.name, r.md5uncompressed, r.md5checksum from rinex_file r
join (
select r.md5uncompressed from rinex_file r
group by md5uncompressed
having count(*) > 1
) t
on t.md5uncompressed = r.md5uncompressed
) t1
left JOIN rinex_file_network rn on rn.id_rinex_file=t1.id
left JOIN network n on n.id=rn.id_network
ORDER BY t1.md5uncompressed
```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment