Skip to content
Snippets Groups Projects
Commit 99b0d05b authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- init

parent 408eaad3
Branches
No related tags found
No related merge requests found
Das Script 'finde_lzaid_dubletten.sh' ist um mehrere Größenordnungen (im ms
Bereich) schneller
als 'bash analysis/finde_lzaid_dubletten_exkl_gelöscht.sh' (im s Bereich)
#!bin/bash
sql1=$(cat <<'SQL1'
SELECT ie_id,lza_id,version,dir_path FROM aip where lza_id in (
SELECT lza_id FROM (
SELECT lza_id, COUNT(*) AS anzahl_ie_pids
FROM (
SELECT ie_id, lza_id, COUNT(*) as versionen
FROM aip
GROUP BY ie_id, lza_id
) WHERE aip.id NOT IN (
SELECT aip_id FROM deleted
)
GROUP BY lza_id
HAVING anzahl_ie_pids > 1
)
) ORDER BY lza_id
SQL1
)
echo "${sql1}" | sqlite3 "$1"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment