hi .thank you again
this is my query
select sum( distinct ..) ....
from csks
inner join cskt on csks~kostl = cskt~kostl
inner join cosp on csks~objnr = cosp~objnr
inner join csku on cosp~kstar = csku~kstar
inner join coep on coep~lednr = cosp~lednr
and coep~objnr = cosp~objnr
and coep~gjahr = cosp~gjahr
and coep~wrttp = cosp~wrttp
and coep~versn = cosp~versn
and coep~kstar = cosp~kstar.