Article View: borland.public.interbase.sql
Article #564Re: case in calculated field
From: Martijn Tonies
Date: Sun, 30 Sep 2007 14:46
Date: Sun, 30 Sep 2007 14:46
28 lines
1663 bytes
1663 bytes
"Moore" <delfino03@caramail.com> wrote in message news:46ffb40b$1@newsgroups.borland.com... > is it posible to include case in the sql of a calculated field? is yes > then why this does not function : What's your complete CREATE TABLE clause and what do you mean by "does not function"? > case TOTAl_ALB > when (IVA_INC = 1) then 1 > when (IVA_INC = 1) and (CON_REQ = 0) then 2 > when (IVA_INC = 0) and (CON_REQ = 1) then 3 > > TOTAl_ALB is the calculated field > CON_REQ and IVA_INC are other fields in the same table -- Martijn Tonies Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle & MS SQL Server Upscene Productions http://www.upscene.com My thoughts: http://blog.upscene.com/martijn/ Database development questions? Check the forum! http://www.databasedevelopmentforum.com
Technical Details
Message-ID:
<46ffb6b2$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<46ffb40b$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,2632d4f685f2ef38 X-Google-Attributes: gid114a0e,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Martijn Tonies" <m.tonies@upscene.removethis.com> Newsgroups: borland.public.interbase.sql References: <46ffb40b$1@newsgroups.borland.com> Subject: Re: case in calculated field Date: Sun, 30 Sep 2007 16:46:12 +0200 Lines: 30 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1807 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1896 NNTP-Posting-Host: 212.238.159.172 Message-ID: <46ffb6b2$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1191163570 212.238.159.172 (30 Sep 2007 07:46:10 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail