I have set up a table in SQL where I store approvals, including a column where I save an approval status (Pending, Approved, Rejected).
As part of a reminder process, I would like to send a message out conditioned on there being more than one item Pending in the Approval status column.
How do I count the number of rows in the table where Approval Status = Pending and then use the result in a Condition (if > 0 then continue the flow; else stop)?