1 回答

TA貢獻(xiàn)1821條經(jīng)驗(yàn) 獲得超6個(gè)贊
嘗試這個(gè):
SELECT
distinct t1.tid,
t2.message as "escalated",
t3.message as "message"
FROM
tickets t1
left join (select ticketid, message from ticketnotes where message LIKE '%https://xxxx.zendesk.net/.../%') t2 on t2.ticketid = t1.tid
left join (select ticketid, message from ticketnotes where message LIKE '%Ticket ID%Issue Summary%Suggested Solution%') t3 on t3.ticketid = t1.tid
WHERE
t1.status = 'Closed'
AND t1.did = 7
AND DATE(t1.date) BETWEEN DATE('2020-04-01') AND DATE('2020-04-30')
- 1 回答
- 0 關(guān)注
- 128 瀏覽
添加回答
舉報(bào)