-- Alertas por artigo/tarefa
select * from tm.TaskItemWarning where TaskItemId
in (
select TaskItemId from tm.taskitem ti inner join ra.Item i on ti.ItemId=i.ItemId where ti.taskid in
(
53501307
)
)
--Parameterizações de reports
select * from tm.TaskWarningForAlertsReport where taskid=53501307