Ignore:
Timestamp:
07/12/05 15:28:51 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/datacenter/macros
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/macros/findcacofiles.C

    r7112 r7182  
    6060    cout << endl;
    6161
    62     TString query="SELECT fRunNumber FROM RunProcessStatus WHERE IsNull(fCaCoFileFound) ";
    63     query+=" and fRunNumber > 10000 and not IsNull(fCCFileAvail)";
     62    TString query="SELECT RunProcessStatus.fRunNumber FROM RunProcessStatus ";
     63    query+=" LEFT JOIN RunData on RunData.fRunNumber=RunProcessStatus.fRunNumber ";
     64    query+=" WHERE IsNull(fCaCoFileFound) and fExcludedFDAKEY=1 ";
     65    query+=" and RunProcessStatus.fRunNumber > 10000 and not IsNull(fCCFileAvail)";
    6466
    6567    TSQLResult *res = serv.Query(query);
  • trunk/MagicSoft/Mars/datacenter/macros/getdolist.C

    r7112 r7182  
    110110    }
    111111
     112    query+=Form(" ORDER BY %s.%s DESC ", table.Data(), rc.GetValue(table+".Primary", ""));
     113
    112114    cout << "query: " << query << endl;
    113115
  • trunk/MagicSoft/Mars/datacenter/macros/resetallruns.C

    r7112 r7182  
    9595            query+=Form(", fCaCoFileFound=%d", atoi(runnumber));
    9696
    97         query+=Form(" WHERE fRunNumber=%d ", atoi(runnumber));
     97        query+=Form(" WHERE fRunNumber=%d and %s!='1970-01-01 00:00:00'", atoi(runnumber), column.Data());
    9898
    9999        cout << "q2: " << query << endl;
Note: See TracChangeset for help on using the changeset viewer.