🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.os
Article #4

Re: SQL: 'if' bij een query (redelijk **dringend**)

#4
From: Tony Claeys
Date: Mon, 14 Aug 2000 00:00
16 lines
1300 bytes
On Mon, 14 Aug 2000 14:32:12 GMT, "Bram Dispa" <bdispa@bigfoot.com>
wrote:

>Ik voeg 2 records samen met een 'GROUP'.
>Als 'status = U', tel ik de tweede 'bruto' bij de eerste op.
>Als 'status = I', trek is de tweede 'bruto' van de eerste af.
>
>Hoe formuleer ik deze 'IF'? In MS Access is dit 'IIF', maar in MySQL
>blijkbaar niet. Hoe doe ik dit dan in MySQL?
>
Hi,

Er zijn meerdere mogelijkheden (IF, CASE)

Voor meer details zie online manual op 
www.mysql.com onder 7.4.8 Control Flow Functions
Technical Details
Message-ID: <3998418d.2694494@news.pandora.be>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <MpTl5.73$3Z6.3114@nreader1.kpnqwest.net>

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit
X-Google-Thread: 100a19,59e42f14d937dfc4
X-Google-Attributes: gid100a19,public
X-Google-Thread: fcea4,59e42f14d937dfc4
X-Google-Attributes: gidfcea4,public
X-Google-Thread: fb9d5,59e42f14d937dfc4
X-Google-Attributes: gidfb9d5,public
From: tony@claeys.cc (Tony Claeys)
Subject: Re: SQL: 'if' bij een query   (redelijk **dringend**)
Date: 2000/08/14
Message-ID: <3998418d.2694494@news.pandora.be>
X-Deja-AN: 658235457
References: <MpTl5.73$3Z6.3114@nreader1.kpnqwest.net>
X-Trace: afrodite.telenet-ops.be 966279729 212.123.2.230 (Mon, 14 Aug 2000 21:02:09 MET DST)
Organization: Pandora - Met vlotte tred op Internet
NNTP-Posting-Date: Mon, 14 Aug 2000 21:02:09 MET DST
Newsgroups: be.comp.os,be.comp.os.linux,be.comp.programming