I have sql
table designed as below:
---- ---------------------- --- ---- -----
1000 Assets 0 0
1001 Cash 0 0 1000
1002 Banks 0 0 1000
1003 NCB Bank 0 0 1002
1004 NCB NO 123456789523555 0 0 1003
1005 NER Bank 0 0 1002
1006 NER NO 123659888845555 0 0 1005
-----------------------------------------------------
I want to if account no. 1006
updated this change will reflected on account no. 1005
and also account no 1002 and also account no. 1000
because all these accounts related to each others.
Account no. 1006
child of account 1005
and account 1005
child of account 1002 and account 1002
child of account 1000
Can I do this with trigger?