Re: [SQL] most efficient way to manage ordering

2004-06-01 Thread Rod Taylor
> Ideally, I'd like to figure out a single SQL query that can be run > afterwards to clean up the dsply_order to make sure that each number occurs > only one time and that there are no gaps. Well... by far the easiest way to approach this is not to clean up the gaps. Removing gaps will only make t

[SQL] most efficient way to manage ordering

2004-06-01 Thread Matthew Nuzum
Sorry if this is confusing, it is somewhat difficult to explain. I find myself frequently creating solutions to the same problem. I'm not yet happy with the way I've done any of them and I'd like to find a purely SQL way of doing this if possible. Here's what I have. For a contrived illustratio