Fix your join:
left join VoucherType vt on vt.VoucherTypeCode = vt.VoucherTypeCode
Comment out the date filter and rerun the query.
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]