Ignore:
Timestamp:
08/06/08 16:52:46 (16 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/db/dbstatus.php

    r8180 r9106  
    55        $joins = array
    66            (
    7              "fSourceName"                       => " LEFT JOIN Source                       ON Sequences.fSourceKEY=Source.fSourceKEY ",
     7             "fSourceName"                       => " LEFT JOIN Source USING(fSourceKEY) ",
    88            );
    99
     
    9595        $query0 .= " FROM Sequences ";
    9696
    97         $query0 .= " LEFT JOIN SequenceProcessStatus ON Sequences.fSequenceFirst=SequenceProcessStatus.fSequenceFirst ";
    98 
    99         $query0 .= " LEFT JOIN Calibration ON Sequences.fSequenceFirst=Calibration.fSequenceFirst ";
    100 
    101         $query0 .= " LEFT JOIN Star ON Sequences.fSequenceFirst=Star.fSequenceFirst ";
     97        $query0 .= " LEFT JOIN SequenceProcessStatus USING(fSequenceFirst,fTelescopeNumber) ";
     98        $query0 .= " LEFT JOIN Calibration USING(fSequenceFirst,fTelescopeNumber) ";
     99        $query0 .= " LEFT JOIN Star USING(fSequenceFirst,fTelescopeNumber) ";
    102100
    103101        foreach ($_GET as $key => $element)
Note: See TracChangeset for help on using the changeset viewer.