Hi Everyone,
I have some trouble with database design..I have tables customers and agents which generate transactions which should be recorded in ledger table.
Please refer to attachment for the design.
I cannot get referential integrity between customers/agents and ledger.
Please propose changes so that I can get up this database working.
Any accounting+computer expert would be able to solve this!!