Re: No distinct in a select into stement ?
- From: "--CELKO--" <jcelko212@xxxxxxxxxxxxx>
- Date: 25 Apr 2006 05:57:25 -0700
Minor trick to make the code easier to read and maintain:
WHERE COALESCE (title1, title2, title3) IS NOT NULL
OR COALESCE (ggregation_title1, aggregation_title2,
aggregation_title3, aggregation_title4) IS NOT NULL
Unfortunately these columns look like repeated and a really bad 1NF
problem. I have the feeling that you might have wanted to use
COALESCE() in the SELECT list to get a non-null title and non-null
aggregation_title instead of this convoluted query.
.
- Follow-Ups:
- Re: No distinct in a select into stement ?
- From: Tony Rogerson
- Re: No distinct in a select into stement ?
- References:
- No distinct in a select into stement ?
- From: Daniel Wetzler
- No distinct in a select into stement ?
- Prev by Date: Re: SELECT * FROM "multiple_tables" WHERE "field_(in_those_tables)_have_the_same_paricular_value" ?
- Next by Date: Re: Order by in a INSERT INTO..SELECT
- Previous by thread: Re: No distinct in a select into stement ?
- Next by thread: Re: No distinct in a select into stement ?
- Index(es):