Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rosettaExitStrategy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Digital Preservation
rosettaExitStrategy
Commits
5ae8ed09
Commit
5ae8ed09
authored
1 year ago
by
Andreas Romeyke
Browse files
Options
Downloads
Patches
Plain Diff
- cleanup dead code
parent
bba5a5eb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
analysis/finde_lzaid_dubletten.sh
+2
-16
2 additions, 16 deletions
analysis/finde_lzaid_dubletten.sh
with
2 additions
and
16 deletions
analysis/finde_lzaid_dubletten.sh
+
2
−
16
View file @
5ae8ed09
#!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
SQL
2
SQL
1
)
echo
"
${
sql
2
}
"
| sqlite3
"
$1
"
echo
"
${
sql
1
}
"
| sqlite3
"
$1
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment