How would you update this SQL query for reports?

8 views
Skip to first unread message

sam

unread,
Sep 2, 2011, 6:15:15 PM9/2/11
to trac-...@googlegroups.com
Hi,

We have SQL query for reports:
===


SELECT p.value AS __color__,
   owner AS __group__,
   id AS ticket, severity,priority, status, summary, component, milestone, t.type AS type, time AS created,
   changetime AS _changetime, description AS _description,
   reporter AS _reporter
  FROM ticket t
  LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority'
  WHERE status = 'assigned' OR status = 'new'
  ORDER BY owner, p.value, t.type, time
===

We need to add one more column to this : Due Date

How would you modify the query to support this?
Reply all
Reply to author
Forward
0 new messages