Subject | Re: [firebird-support] View with case statement |
---|---|
Author | Daniel Rail |
Post date | 2003-08-21T10:43:01Z |
Hi,
At August 20, 2003, 23:07, Darryl wrote:
front-end application that is giving that error and not Firebird.
But, personally, I would prefer to write:
(case SIZE_ID
WHEN 1 then QUANTITY
WHEN 7 then QUANTITY
WHEN 13 then QUANTITY
end) as CASE_FIELD_1 or whatever more significant name
But, that is personal preference, and also makes it easier to know
what is the name of the result field.
--
Best regards,
Daniel Rail
Senior System Engineer
ACCRA Group Inc. (www.accra.ca)
ACCRA Med Software Inc. (www.filopto.com)
At August 20, 2003, 23:07, Darryl wrote:
> Curiously, this VIEW was created and does work, despite this error beingWhat are you using to create the view? Because, it might be the
> displayed.
front-end application that is giving that error and not Firebird.
But, personally, I would prefer to write:
(case SIZE_ID
WHEN 1 then QUANTITY
WHEN 7 then QUANTITY
WHEN 13 then QUANTITY
end) as CASE_FIELD_1 or whatever more significant name
But, that is personal preference, and also makes it easier to know
what is the name of the result field.
--
Best regards,
Daniel Rail
Senior System Engineer
ACCRA Group Inc. (www.accra.ca)
ACCRA Med Software Inc. (www.filopto.com)