I have an SQL that I wanted to use in xCrud.
The MySQL Query is
SELECT r.ID, r.Name, r.Date, count(p.Route_ID) as Num_Package, SUM(status=1496) as Num_