Topic awaiting preservation: Dynamic Tables or the like in SQL (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: |
posted 02-10-2003 22:32
Ok I'm not exactly sure what I'm trying to say here so I'll try and say it the best way I know. I'm trying to create an inventory management system for our company. The total list of products and the like is fine with me I know how to do that. What is hard is that I want to record when a job goes out the door exactly what items and how many of each they have with them. The trick is that they we have over 500 different items we stock and they may only take out the door a total of 20 different items with them each time. I don't want to store in a table 480 blank spaces. I could code this in C with a linked list of linked lists basically. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 02-10-2003 23:47
I'd just make a table called order details or something with 3 cols |
Nervous Wreck (II) Inmate From: |
posted 02-10-2003 23:59
What happens if some items have more fields than just a quantity? Such as a motor would have a model # and serial number associated with it. It would be easy if everything was just a number and quantity. I guess I could create 2 tables then. 1 for the basic items and 1 for the more advanced. |
Nervous Wreck (II) Inmate From: |
posted 02-11-2003 00:09
Basically we pull out of the warehouse over 500 different items a day, but only 2-3 jobs a day. Thus on the first case you have a Order(N) search on 500 per day and on the 2nd you have a Order (N/2) on 3 per day. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 02-11-2003 02:12
It sounds like you're trying to do too much with one table |
Nervous Wreck (II) Inmate From: |
posted 02-11-2003 02:26
Ya just discussed it a bunch with acidbox. I know I need a table for product description. I'm just figuring the best way to make the other table and waste as little space as possible and keep the searching and deletion and whatnot as fast as possible. |