Thank you reeson and Healdem first of all for replying. I am sorry for being late on reply.
reeson is right that the system is about
Existing Data so i've to stick to the company's plant identification/numbring system.
Healdem point is valueable for me to use a menufecturer's serial number or engine number. It is ok/applicable to vehicles and other branded material, but there are things/material as i've mentioned earlier that,
Quote:
|
there are items which have no serial/engine number, e.g a turner shop is a whole container with leth machine and other stuff fixed inside
|
I'd like to show you what i did so far and i'll appriciate your valueable comments. Follwing are the details.
Groups Table
Group_code PK
Group_name
Main_cats table
Mcat_code PK
Group_code PK (FK Groups too)
Mcat_name
Sub_cats table
Plant_id Auto_increment PK
Scat_code
Mcat_code FK
Group_code FK
Scat_name
Unique Index on bold ones.
at this point the (09/01.03/) part of numbring system is ready and unique.
now comes the plants table where i am using the Plant_id and Serial_no as composit where Plant_id comes from Sub_cats and pointing to a unique set of Group,Main_cat and sub_cat.
It works but i am not sure whether it's alright or is it going to make problems on the long run and what effects it'll have on performance?
Please let me know whether this approach is Good or is there any better way to accomplish this?
At last

please ignore any spell mistaks and anything unmannered.
Regards,