select
t.id as transaction_id,
t.value,
dat.mnemonics as debit_type,
da.owner_sharer_id as debit_sharer_id,
cat.mnemonics as credit_type,
ca.owner_sharer_id as credit_sharer_id
from ourpension.sharer s
join back_office.account da
on da.owner_sharer_id = s.id
join back_office.transaction t
on t.debit_account_id = da.id
join back_office.account_type dat
on dat.id = da.account_type_id
left join back_office.account ca
on ca.id = t.credit_account_id
left join back_office.account_type cat
on cat.id = ca.account_type_id
where s.number like '%02688346889'
and t.effective_date >= cast('2026-08-01' as date)
and t.effective_date < cast('2026-10-01' as date)
order by t.effective_date, t.id;