I would like to turn the below sql into a query that I can have accessible to the user in the AX menus. Does anyone know how to do this?
K
select a.description,b.itemid, c.phantom,a.createddatetime,a.createdby,d.email | ||||
from sysdatabaselog A | ||||
inner join | ||||
bomversion B | ||||
on substring(a.description,1,11) = b.bomid | ||||
inner join | ||||
inventtable C | ||||
on b.itemid = c.itemid | ||||
left outer join | ||||
sysuserinfo D | ||||
on a.createdby = id | ||||
where (table_ = 18 and logtype=1) | ||||
and a.CREATEDDATETIME > '2022-01-22' | ||||
and c.phantom=1 |