Welcome Guest, Not a member yet? Register   Sign In
How Would You Structure This?
#10

[eluser]obiron2[/eluser]
I'd have a table

Table:Queue

QueueID (autonumber)
QueueName

Table:QueueList

QueueID
QueuePosition (int)
ProductID (varchar)
StockLimit (int)

Primary: QueueID/QueuePosition
Unique: QueueID/ProductID

This way you can put a product into more than one queue and set different expiry limits on it.

To build your display product list, I would join to the Product table on ProductID and select where Product.AvailableStock >= StockLimit order by QueueList.QueuePosition

I would have thought your bigger problem would be the admin side. Moving database records up and down a manual preference is normally a pretty torrid affair unless you are going to use Ajax/javascript functionality to make it drag and drop.

obiron


Messages In This Thread
How Would You Structure This? - by El Forum - 01-17-2008, 07:12 AM
How Would You Structure This? - by El Forum - 01-17-2008, 07:19 AM
How Would You Structure This? - by El Forum - 01-17-2008, 07:22 AM
How Would You Structure This? - by El Forum - 01-17-2008, 07:23 AM
How Would You Structure This? - by El Forum - 01-17-2008, 07:30 AM
How Would You Structure This? - by El Forum - 01-17-2008, 08:08 AM
How Would You Structure This? - by El Forum - 01-17-2008, 08:37 PM
How Would You Structure This? - by El Forum - 01-17-2008, 11:18 PM
How Would You Structure This? - by El Forum - 01-18-2008, 05:15 AM
How Would You Structure This? - by El Forum - 01-18-2008, 07:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB