select * from account a join debtor b on a.waccountid = b.waccountid
where a.waccountid = <@WACCOUNTID@>