Files
abap-llm/tasks_gen/train/G1092/faulty/m4_i_route_load.ddls.asddls
2026-10-05 18:02:52 +02:00

16 lines
456 B
Plaintext

@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,
sum( veh.fee ) as total_fee
}
group by
sail.route_id
having
sum( veh.weight_kg ) > 10001