lol!!! Education:
Thanks for the heads up! i needed that. Now i remember last semester i learnt Data Structures, where i encountered linked lists, arrays, different types of trees. Well, i implemented a tree in VBA once but it was not to third siblings.
Now: I think the problem is putting in database, and How to design a form that helps a novice user to manage this kind of data.
FROM my memory, i remember that the structures you have told me usually helps in memory usage and efficiency of code. Well, am sure to implement the best when it comes to that.
Well, am trying to figure out how allow the user to edit , add and delete from this structure. (Tree)
Here is the database structure i have in mind (MySQl):
CREATE TABLE IF NOT EXISTS `price_category` (
`act_code` int(20) NOT NULL,
`name` text NOT NULL,
PRIMARY KEY (`act_code`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `price_sub_category` (
`id` int(11) NOT NULL auto_increment,
`act_code` int(20) NOT NULL,
`name` text NOT NULL,
`aprovedp1` int(20) default NULL,
`aprovedp1y` char(20) default NULL,
`aprovedp2` int(20) default NULL,
`aprovedp2y` char(20) default NULL,
`proposedp` int(20) default NULL,
`proposedpy` char(20) default NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `price_sub_sub_category` (
`id` int(11) NOT NULL auto_increment,
`act_code` int(20) NOT NULL,
`sub_code` int(20) NOT NULL,
`name` text NOT NULL,
`aprovedp1` int(20) default NULL,
`aprovedp1y` char(20) default NULL,
`aprovedp2` int(20) default NULL,
`aprovedp2y` char(20) default NULL,
`proposedp` int(20) default NULL,
`proposedpy` char(20) default NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;