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

15 lines
448 B
Plaintext

@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Spirit output per still'
define view entity {{P}}I_STILL_OUTPUT
as select from {{p}}runlog
{
key still_id as still_id,
count( * ) as runs,
sum( wash_litre ) as wash_l,
max( spirit_litre ) as spirit_l,
count( distinct cask_no ) as casks,
max( run_date ) as last_run
}
where spirit_litre > 0
group by still_id