You must log in or register to comment.
For this SQL query:
SELECT component_id, COUNT(*) FROM ticketing_system_table WHERE assignee_user.email = 'username@email.com' AND status IN ('NEW', 'ASSIGNED', 'ACCEPTED') GROUP BY component_id ORDER BY component_id DESC;
The Pipe query alternative would look like this:
FROM ticketing_system_table |> WHERE assignee_user.email = 'username@email.com' AND status IN ('NEW', 'ASSIGNED', 'ACCEPTED') |> AGGREGATE COUNT(*) GROUP AND ORDER BY component_id DESC;