@AccessControl.authorizationCheck: #NOT_REQUIRED @EndUserText.label: 'Ferry route load' define view entity {{P}}I_ROUTE_LOAD as select from {{p}}sail as sail inner join {{p}}veh as veh on veh.sail_id = sail.sail_id { key sail.route_id as route_id, count( * ) as veh_count, sum( veh.weight_kg ) as total_weight, max( veh.fee ) as total_fee } group by sail.route_id having sum( veh.weight_kg ) > 10000