IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30692


Ignore:
Timestamp:
Feb 18, 2011, 3:54:35 PM (15 years ago)
Author:
bills
Message:

need to left join to Label

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/psstatus

    r30517 r30692  
    4444
    4545my $totals_query = "
    46 SELECT label, count(job_id) AS 'Unfinished Jobs', priority
     46SELECT label,
     47    count(job_id) AS 'Unfinished Jobs',
     48    IFNULL(priority,10000) as priority
    4749FROM pstampRequest join pstampJob USING(req_id)
    48 JOIN Label USING(label)
     50LEFT JOIN Label USING(label)
    4951WHERE pstampJob.state ='run' and pstampRequest.state ='run'
    5052GROUP by label";
     
    7577        pstampRequest.fault,
    7678        timestamp,
    77         priority
    78 FROM pstampRequest
    79 JOIN Label USING(label)
     79        IFNULL(priority,10000) AS priority
     80FROM pstampRequest
     81LEFT JOIN Label USING(label)
    8082    WHERE pstampRequest.state = 'run' or pstampRequest.state ='new'
    8183   --     OR pstampRequest.state = 'run.wait'
Note: See TracChangeset for help on using the changeset viewer.