Trying to develop data sources for Lobby elements to use for day to day business management.
I am trying to ascertain the next awaiting step in the approval process for a purchase requisition line so my data source so need the minimum step ID where the Signature field is null. See snapshot below;
essentially my SQL will look like;
SELECT COLUMNS, MIN(ROUTE)
FROM &AO.PURCH_REQ_LINE_APPROVAL
WHERE SIGNATURE_ID IS NULL
GROUP BY COLUMNS:
as per the image above the aggregate function appears to not be working as there are multiple steps (Route column) still displayed, IE 10, 20 and 30. whereas there should only be the minimum route number displayed.
what am i missing…...
Best answer by Dilani
View original