Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Database design again
Message
From
30/09/2003 08:58:06
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Database design again
Miscellaneous
Thread ID:
00833424
Message ID:
00833424
Views:
66
Hi,
I am designing table structure for any inventory system. The system support multiple item types, matrix, serialno, normal, ...

Also, it support multi barcode, which meant

1. Normal item could has more than one barcode beside of the default. However, while looking for stock status, only the default barcode will be listed.

2. Serial No. items only use one barcode, but with alot of serial no.

3. Matrix item has one default barcode, and each colour and size will have it's own barcode. Each of them will keep track of own stock qty.

At 1st, my table design for it is as:

Table: Multi BarcCode
InoID (FK), BarCode, MBarCodeID (PK), ColourID, SizeID, SerialNo

Table: Stock_Status
OutletID, MBarCodeID, Qty

From the design above, you may notice that, different coloumn will be filled based on different type of item type. Also, Some of the MBarCodeID may/may not stored in stock_status table based on item type either. I found that it quite complicated.

Then, I am thinking to one table take care of each item type barcode record, but.. may slow down the speed of search, reporting, maintenance..

So, I would like get some comments from you all..
Any ideas?

Thank you in advance
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...
Next
Reply
Map
View

Click here to load this message in the networking platform