This commit is contained in:
parent
e7a6d0109c
commit
9910ae5c64
|
@ -186,7 +186,7 @@ BEGIN
|
||||||
SELECT DISTINCT tl.originFk ticketFk
|
SELECT DISTINCT tl.originFk ticketFk
|
||||||
FROM ticketLog tl
|
FROM ticketLog tl
|
||||||
JOIN (
|
JOIN (
|
||||||
SELECT MAX(tl.id)ids, tw.ticketFk
|
SELECT MAX(tl.id)ids
|
||||||
FROM ticket t
|
FROM ticket t
|
||||||
JOIN ticketLog tl ON tl.originFk = t.id
|
JOIN ticketLog tl ON tl.originFk = t.id
|
||||||
LEFT JOIN ticketWeekly tw ON tw.ticketFk =t.id
|
LEFT JOIN ticketWeekly tw ON tw.ticketFk =t.id
|
||||||
|
|
Loading…
Reference in New Issue