Changeset 18757


Ignore:
Timestamp:
02/11/17 21:44:39 (8 years ago)
Author:
Daniela Dorner
Message:
added queries to update new columns in DB
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/Processing/BuildSequences.sh

    r18252 r18757  
    3030esac
    3131
     32# update run counts in SequenceInfo table
     33# runs in sequence
     34query="UPDATE SequenceInfo LEFT JOIN RunInfo USING(fNight, fSequenceID) "
     35query=$query"SET fNumRuns=(SELECT COUNT(*) FROM RunInfo "
     36query=$query"WHERE fSequenceID=SequenceInfo.fSequenceID AND fNight=SequenceInfo.fNight) "
     37printprocesslog "INFO Updating SequenceInfo with number of runs."
     38sendquery
     39# raw files avail ISDC
     40query="UPDATE SequenceInfo LEFT JOIN RunInfo USING(fNight, fSequenceID) "
     41query=$query"SET fNumRawfilesAvailISDC=(SELECT COUNT(*) FROM RunInfo "
     42query=$query"LEFT JOIN RawFileAvailISDCStatus USING(fNight, fRunID) "
     43query=$query"WHERE fSequenceID=SequenceInfo.fSequenceID AND fNight=SequenceInfo.fNight "
     44query=$query"AND NOT ISNULL(RawFileAvailISDCStatus.fStartTime) "
     45query=$query"AND NOT ISNULL(RawFileAvailISDCStatus.fStopTime) "
     46query=$query"AND ISNULL(RawFileAvailISDCStatus.fReturnCode)) "
     47printprocesslog "INFO Updating SequenceInfo with number of available files."
     48sendquery
     49
    3250finish
    3351
Note: See TracChangeset for help on using the changeset viewer.