Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When do you split into separate tables?
Message
From
25/10/2001 13:43:00
 
 
To
25/10/2001 10:07:14
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00572907
Message ID:
00573297
Views:
27
< snip >

>>But, I take it from this that your preference would be to store customer id.
>
>That's the measure of redundance you may want to introduce, provided the data there isn't prone to changes. I've usually stored the invoice date in both invoice header and line items - because it never changed, and I had a bunch of reports which pulled from line items only, based on this date.
>
>Also, I've had invoices without line items - which were corrections of previous invoices, or just lump sum charges for unspecified extras. They also had no orders - and in these cases you'd have no place to put the customer ID if it wasn't in the invoice header. Actually, back home very few things had an order at all - we usually sent a pro-forma invoice, and if it was aggreed upon (or even paid), that served as an order, but most of the time there were long term deals or just phone agreements, which were billed periodically or ad-hoc, therefore no orders most of the time.

I've had similar experiences where there isn't a neat and easy solution like an invoice without a Work Order. The redunancy makes a lot of sense. You can default customer information to the Work Order's information if there is one, but you have to allow an invoice without a Work Order.

>
< snip >

Equally, storing the state with the ZIP should be OK - I haven't heard of too many cities travelling between states recently.

So you don't feel store the State Id? I like the zip idea, but in some cases the user won't know the zip or it may be a new zip that would not have been added to the table yet.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform