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

- cleanup dead code

parent bba5a5eb
No related branches found
No related tags found
No related merge requests found
#!bin/bash
sql1=$(cat <<'SQL1'
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
ORDER BY ie_id DESC
)
GROUP BY lza_id
HAVING anzahl_ie_pids > 1
ORDER BY anzahl_ie_pids DESC
SQL1
)
sql2=$(cat <<'SQL2'
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
......@@ -29,7 +15,7 @@ SELECT ie_id,lza_id,version,dir_path FROM aip where lza_id in (
ORDER BY anzahl_ie_pids DESC
)
) ORDER BY lza_id
SQL2
SQL1
)
echo "${sql2}" | sqlite3 "$1"
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