Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Table design best practices for products with diff units
Message
From
20/08/2006 19:18:45
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01146649
Message ID:
01147142
Views:
18
Viv,

You are right of course. I had a client who wanted his existing app redone (done by the previous developer) and I was flabbergasted with how the products table was done ('flat-file'ish as per your words). Anyhow, I posted this thread to see if this is ever done by anybody else.

Thanks a lot. Cheers!

Dennis

>The solution probably depends on the percentage of items where this occurs. If the frequency is low I'd use the first option. I don't think I'd consider the second option at all - too inflexible (and 'flat-file'ish).
>
>The *most* flexible option may be the old 'component/assembly' design using three tables (ideally allowing an assembly list to recursively contain other assemblies as well as components)
>:
>
>Components:
>1 Coke 333 ml
>2 Coke 1   ltr
>3 Potato Chips
>4 Sandwich
>etc...
>
>Assemblies (Inventory Items)
>ID  Name     etc
>....
>3 12 x 1Litre Coke Pack
>4  6 x 1Litre Coke Pack
>5 Large Coke with free chips
>6 Deluxe Picnic Hamper
>
>Assembly List
>AID Component  Assembly  Quan
>3   2                    12
>4   2                    6
>5   2                    1
>5   3                    1
>6                5       1
>6   4                    1
>
>etc. HTH,
>Viv
Previous
Reply
Map
View

Click here to load this message in the networking platform