Re: [GENERAL] filter duplicates by priority

2009-07-15 Thread Clark Slater
> than part number order, put the whole thing in a sub-select and re-sort > outside it. > > regards, tom lane > > "Clark Slater" writes: >> I am trying to use DISTINCT ON to filter out *potential* duplicate >> values >> from a set of

[GENERAL] filter duplicates by priority

2009-07-14 Thread Clark Slater
Hello- I am trying to use DISTINCT ON to filter out *potential* duplicate values from a set of sub queries. There are certain cases where there can be repetitive part numbers that are priced differently. I'm trying to start with the full list, ordered by priority, and then remove any repeats tha

[GENERAL]

2009-07-10 Thread Clark Slater
Hello- I am working on an e-commerce system that has different lists of products which contain many of the same products, at different prices. When a user searches for a certain set of part numbers, I would like the resulting products (and prices) to come from one of the lists, according to the l