@AccessControl.authorizationCheck: #NOT_REQUIRED @EndUserText.label: 'Truck with depot' define view entity {{P}}I_TRUCK as select from {{p}}truck as truck inner join {{p}}depot as depot on depot.depot_id = truck.depot_id association [0..1] to {{p}}depot as _Depot on truck.depot_id <> _Depot.depot_id { key truck.truck_id as truck_id, truck.depot_id as depot_id, truck.capacity_kg as capacity_kg, truck.truck_type as truck_type, _Depot } where truck.capacity_kg > 0