Posted by Bill Bob on 10/01/46 11:40
> 1) You would have a much simpler task, if you made the year > a key in
the Vouchers and Transactions table, rather than > having one table per
year.
My intial problem was something else. So, I had to switch to different
table for different years.
Each Voucher Table contains a VoucherDate and a VoucherTypeID and a
VoucherNo. The VoucherNo must be unique for a vouchertype and within a
financial year (1st April - 31st March).
SQL Server cannot create a unique index with this criteria. Hence, I had
to split the tables.
*** Sent via Developersdex http://www.developersdex.com ***
[Back to original message]
|