Subject | Re: [firebird-support] Re: Multiply CASE in SQL statement |
---|---|
Author | Dimitry Sibiryakov |
Post date | 2006-05-11T09:44:22Z |
On 11 May 2006 at 7:39, majstoru wrote:
THEN A.Price * P.Param_price END as Price
FROM Article JOIN Catalog C ON C.Article =
A.id JOIN Param P ON P.Date=A.Date
WHERE Id = :ID
--
SY, Dimitry Sibiryakov.
>Thanks for your reply, but can you please write an SQL how to solveSELECT CASE A.Group WHEN 1 THEN A.Price WHEN 2 THEN C.Price WHEN 3
>this, I'm very poor with CASE into SQL statement?
THEN A.Price * P.Param_price END as Price
FROM Article JOIN Catalog C ON C.Article =
A.id JOIN Param P ON P.Date=A.Date
WHERE Id = :ID
--
SY, Dimitry Sibiryakov.