🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #17342

Re: sql vraagje

#17342
From: MindTrap
Date: Wed, 05 Jan 2000 00:00
47 lines
2099 bytes
> Wat moet je anders hebben? Probeer het eens beter te formuleren.

ik zal mijn best doen:

stel ge hebt de volgende tabel:

id      1       2       3       
-----------------------------
1       eerste  tweede  derde
2       pif     poef    paf
3       eerste  two     derde

en ik wil 
	select id from tabel where 1="eerste" and 2="tweede"
doen
(jaja, ik weet dat die 1 en 2 strings moeten zijn)


welnu, in plaats van die tabel gebruikt ge de volgende (no matter how
abnormal):

id    | type  | value
----------------------
1       1       eerste                  <-- record 1
1       2       tweede
1       3       derde
2       1       pif                     <-- record 2
2       2       poef
2       3       paf
3       1       eerste                  <-- record 3
3       2       two
3       3       three



hoe doe ik nu dezelfde query als daarjuist?

> Ruikt eerder naar iemand die zijn normalisatie vergeten is.

hehe... als het anders kon zou ik het zeker doen hoor...



-- 
---
Be nice to the nerds and geeks in high school 
- you'll be working for them in the future.
Technical Details
Message-ID: <387393B9.FC892506@linuxfreak.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3873800B.CE8DB5BE@linuxfreak.com> <387382DE.95EA1484@co.and.co> <3873898A.B94BA56E@linuxfreak.com> <38738B1A.FCD7C056@co.and.co> <38738B31.57FF9425@linuxfreak.com> <38738CD3.8878F89C@co.and.co>

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit
X-Google-Thread: fcea4,adf63b3fcd32c9b4
X-Google-Attributes: gidfcea4,public
From: MindTrap <IDONTLIKESPAM.MindTrap@linuxfreak.com>
Subject: Re: sql vraagje
Date: 2000/01/05
Message-ID: <387393B9.FC892506@linuxfreak.com>
X-Deja-AN: 568745333
Cache-Post-Path: marvin!unknown@tvd-10-67-52-33.tvd.kotnet.kuleuven.ac.be
Content-Transfer-Encoding: 7bit
References: <3873800B.CE8DB5BE@linuxfreak.com> <387382DE.95EA1484@co.and.co> <3873898A.B94BA56E@linuxfreak.com> <38738B1A.FCD7C056@co.and.co> <38738B31.57FF9425@linuxfreak.com> <38738CD3.8878F89C@co.and.co>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@belnet.be
X-Trace: naxos.belnet.be 947098554 25887 134.58.127.3 (5 Jan 2000 18:55:54 GMT)
Organization: KULeuvenNet
X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/)
Mime-Version: 1.0
NNTP-Posting-Date: 5 Jan 2000 18:55:54 GMT
Newsgroups: be.comp.programming