Re: [GENERAL] Ordering Results by a Supplied Order

2014-02-07 Thread Michael Sacket
On Feb 6, 2014, at 12:57 PM, Gavin Flower wrote: > On 07/02/14 05:43, Michael Sacket wrote: >> On Feb 6, 2014, at 2:23 AM, Vik Fearing wrote: >> >>> On 02/06/2014 04:16 AM, Michael Sacket wrote: Often times I find it necessary to work with table rows in a specific, generally user-supp

Re: [GENERAL] Ordering Results by a Supplied Order

2014-02-06 Thread Rob Sargent
On 02/06/2014 11:57 AM, Gavin Flower wrote: On 07/02/14 05:43, Michael Sacket wrote: On Feb 6, 2014, at 2:23 AM, Vik Fearing wrote: On 02/06/2014 04:16 AM, Michael Sacket wrote: Often times I find it necessary to work with table rows in a specific, generally user-supplied order. It could be

Re: [GENERAL] Ordering Results by a Supplied Order

2014-02-06 Thread Gavin Flower
On 07/02/14 05:43, Michael Sacket wrote: On Feb 6, 2014, at 2:23 AM, Vik Fearing wrote: On 02/06/2014 04:16 AM, Michael Sacket wrote: Often times I find it necessary to work with table rows in a specific, generally user-supplied order. It could be anything really that requires an ordering t

Re: [GENERAL] Ordering Results by a Supplied Order

2014-02-06 Thread Michael Sacket
On Feb 6, 2014, at 2:23 AM, Vik Fearing wrote: > On 02/06/2014 04:16 AM, Michael Sacket wrote: >> Often times I find it necessary to work with table rows in a specific, >> generally user-supplied order. It could be anything really that requires an >> ordering that can't come from a natural col

Re: [GENERAL] Ordering Results by a Supplied Order

2014-02-06 Thread Sergey Konoplev
On Wed, Feb 5, 2014 at 7:16 PM, Michael Sacket wrote: > Often times I find it necessary to work with table rows in a specific, > generally user-supplied order. It could be anything really that requires an > ordering that can't come from a natural column. Most of the time this > involved manipula

Re: [GENERAL] Ordering Results by a Supplied Order

2014-02-06 Thread Rémi Cura
Ok, thanks ^^ Cheers, Rémi-C 2014-02-06 Vik Fearing : > On 02/06/2014 10:00 AM, Rémi Cura wrote: > > Hey, > > I don"t understand the difference between this ORDINALITY option and > > adding a "row_number() over()" in the SELECT. > > WITH ORDINALITY will give you something to order by. You sho

Re: [GENERAL] Ordering Results by a Supplied Order

2014-02-06 Thread Vik Fearing
On 02/06/2014 10:00 AM, Rémi Cura wrote: > Hey, > I don"t understand the difference between this ORDINALITY option and > adding a "row_number() over()" in the SELECT. WITH ORDINALITY will give you something to order by. You should never do "row_number() over ()" because that will give you potent

Re: [GENERAL] Ordering Results by a Supplied Order

2014-02-06 Thread Rémi Cura
Hey, I don"t understand the difference between this ORDINALITY option and adding a "row_number() over()" in the SELECT. Thanks, Cheers, Remi-C 2014-02-06 Vik Fearing : > On 02/06/2014 04:16 AM, Michael Sacket wrote: > > Often times I find it necessary to work with table rows in a specific, >

Re: [GENERAL] Ordering Results by a Supplied Order

2014-02-06 Thread Vik Fearing
On 02/06/2014 04:16 AM, Michael Sacket wrote: > Often times I find it necessary to work with table rows in a specific, > generally user-supplied order. It could be anything really that > requires an ordering that can't come from a natural column. Most of > the time this involved manipulating a po