Changeset 9105 for trunk/MagicSoft/Mars/datacenter/db/sequence.php
- Timestamp:
- 08/06/08 16:13:23 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/sequence.php
r8468 r9105 38 38 $query0 .= " FROM Sequences "; 39 39 40 $query0 .= " LEFT JOIN Source ON Sequences.fSourceKEY=Source.fSourceKEY";41 $query0 .= " LEFT JOIN Project ON Sequences.fProjectKEY=Project.fProjectKEY";42 $query0 .= " LEFT JOIN HvSettings ON Sequences.fHvSettingsKEY=HvSettings.fHvSettingsKEY";43 $query0 .= " LEFT JOIN DiscriminatorThresholdTable ON Sequences.fDiscriminatorThresholdTableKEY=DiscriminatorThresholdTable.fDiscriminatorThresholdTableKEY";44 $query0 .= " LEFT JOIN L1TriggerTable ON Sequences.fL1TriggerTableKEY=L1TriggerTable.fL1TriggerTableKEY";45 $query0 .= " LEFT JOIN L2TriggerTable ON Sequences.fL2TriggerTableKEY=L2TriggerTable.fL2TriggerTableKEY";46 $query0 .= " LEFT JOIN TriggerDelayTable ON Sequences.fTriggerDelayTableKEY=TriggerDelayTable.fTriggerDelayTableKEY";47 $query0 .= " LEFT JOIN TestFlag ON Sequences.fTestFlagKEY=TestFlag.fTestFlagKEY";48 $query0 .= " LEFT JOIN LightConditions ON Sequences.fLightConditionsKEY=LightConditions.fLightConditionsKEY";49 $query0 .= " LEFT JOIN ManuallyChanged ON Sequences.fManuallyChangedKEY=ManuallyChanged.fManuallyChangedKEY";50 $query0 .= " LEFT JOIN SequenceProcessStatus ON Sequences.fSequenceFirst=SequenceProcessStatus.fSequenceFirst";51 $query0 .= " LEFT JOIN Calibration ON Sequences.fSequenceFirst=Calibration.fSequenceFirst";52 $query0 .= " LEFT JOIN Star ON Sequences.fSequenceFirst=Star.fSequenceFirst";40 $query0 .= " LEFT JOIN Source USING(fSourceKEY) "; 41 $query0 .= " LEFT JOIN Project USING(fProjectKEY) "; 42 $query0 .= " LEFT JOIN HvSettings USING(fHvSettingsKEY) "; 43 $query0 .= " LEFT JOIN DiscriminatorThresholdTable USING(fDiscriminatorThresholdTableKEY) "; 44 $query0 .= " LEFT JOIN L1TriggerTable USING(fL1TriggerTableKEY) "; 45 $query0 .= " LEFT JOIN L2TriggerTable USING(fL2TriggerTableKEY) "; 46 $query0 .= " LEFT JOIN TriggerDelayTable USING(fTriggerDelayTableKEY) "; 47 $query0 .= " LEFT JOIN TestFlag USING(fTestFlagKEY) "; 48 $query0 .= " LEFT JOIN LightConditions USING(fLightConditionsKEY) "; 49 $query0 .= " LEFT JOIN ManuallyChanged USING(fManuallyChangedKEY) "; 50 $query0 .= " LEFT JOIN SequenceProcessStatus USING(fSequenceFirst,fTelescopeNumber) "; 51 $query0 .= " LEFT JOIN Calibration USING(fSequenceFirst,fTelescopeNumber) "; 52 $query0 .= " LEFT JOIN Star USING(fSequenceFirst,fTelescopeNumber) "; 53 53 54 54 … … 171 171 { 172 172 $query1 = "SELECT fRunNumber, fCalibrationScriptName FROM RunData "; 173 $query1 .= " LEFT JOIN RunType ON RunData.fRunTypeKEY=RunType.fRunTypeKEY";174 $query1 .= " LEFT JOIN CalibrationScript ON RunData.fCalibrationScriptKEY=CalibrationScript.fCalibrationScriptKEY";173 $query1 .= " LEFT JOIN RunType USING(fRunTypeKEY) "; 174 $query1 .= " LEFT JOIN CalibrationScript USING(fCalibrationScriptKEY) "; 175 175 $query1 .= " WHERE fSequenceFirst=" . $sequ . " AND fRunTypeName='" . $type . "'"; 176 176 … … 195 195 { 196 196 $query2 = "SELECT RunData.fRunNumber FROM RunData "; 197 $query2 .= " LEFT JOIN RunProcessStatus ON RunData.fRunNumber=RunProcessStatus.fRunNumber";197 $query2 .= " LEFT JOIN RunProcessStatus USING(fRunNumber,fTelescopeNumber,fFileNumber) "; 198 198 $query2 .= " WHERE fSequenceFirst=" . $sequ . " AND IsNull(" . $column . ")"; 199 199
Note:
See TracChangeset
for help on using the changeset viewer.