buda-base / drs-deposit

Harvard DRS Deposit base
1 stars 0 forks source link

Some misaligned volume labels #69

Open jimk-bdrc opened 5 years ago

jimk-bdrc commented 5 years ago

select d.osn, v.label, w.WorkName, substring(v.label,1,locate('-',v.label)-1) as vWork from DRS d join Volumes v using(volumeId) join Works w using(workId) where substring(v.label,1,locate('-',v.label)-1) <> WorkName; select database();

osn label WorkName vWork
W2874-I1KG12439 W2874-I1KG12439 W28974 W2874
W1PD137855-I4PD4451 W1PD137855-I4PD4451 W1PD137854 W1PD137855
W3CN7045-I3CN7047 W3CN7045-I3CN7047 W3CN6629 W3CN7045
rename_jpegs.sh rename_jpegs.sh W1KG14782  
W4CZ74184-I4CZ74267 W4CZ74184-I4CZ74267 W4CZ74198 W4CZ74184