Article View: be.comp.os
Article #2Re: SQL: 'if' bij een query (redelijk **dringend**)
From: Motormuisje
Date: Mon, 21 Aug 2000 00:00
Date: Mon, 21 Aug 2000 00:00
37 lines
1930 bytes
1930 bytes
Bram, Misschien kom je hier wat mee verder: http://www.postgresql.org/docs/awbook.html en als je eens zoek op www.freshmeat.net naar php in combinatie met mysql kun je wel een howto vinden. Succes! Groetjes, Thirza In article <MpTl5.73$3Z6.3114@nreader1.kpnqwest.net>, "Bram Dispa" <bdispa@bigfoot.com> wrote: > Ik heb hier een database in MySQL die ik aanstuur via PHP4. > > Ik voeg 2 records samen met een 'GROUP'. > Ik tel de twee velden 'bruto' op. > > Dit lukt... Maar wat wil ik nu dat er gebeurt? > > 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? > > Een CC naar m'n mailbox zou ik leuk vinden als je reply't. > Alvast bedankt! > > Bram > bdispa@bigfoot.com -- http://brammeke.net -- ICQ 5960864 > > Sent via Deja.com http://www.deja.com/ Before you buy.
Technical Details
Message-ID:
<8nqu6l$sf2$1@nnrp1.deja.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<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: Motormuisje <motormuisje@my-deja.com> Subject: Re: SQL: 'if' bij een query (redelijk **dringend**) Date: 2000/08/21 Message-ID: <8nqu6l$sf2$1@nnrp1.deja.com> X-Deja-AN: 660656455 References: <MpTl5.73$3Z6.3114@nreader1.kpnqwest.net> X-Http-Proxy: 1.0 grd01s05, 1.0 x54.deja.com:80 (Squid/1.1.22) for client 194.41.109.88 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Mon Aug 21 09:53:31 2000 GMT X-MyDeja-Info: XMYDJUIDmotormuisje Newsgroups: be.comp.os,be.comp.os.linux,be.comp.programming X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)