alexander-r
3/20/2019 - 3:15 PM

MRC2LIMS snippets

-- Delete experiments to update data from original LIMS
DELETE FROM EXPERIMENTAL_SUBJECT U WHERE U.SUBJECT_ID IN (
SELECT DISTINCT SUBJECT_ID FROM SAMPLE S
WHERE S.EXPERIMENT_ID > 'EX00754');

DELETE FROM EXPERIMENT S WHERE S.EXPERIMENT_ID > 'EX00754'