Mailinglisten-Archive |
Hi,
andreas kempf aka 'amalesh':
>
> +----+---------------+---------+---------+
> | id | modell | vorwahl | PLZ |
> +----+---------------+---------+---------+
> | 1 | Mercedes 230 | 040 | 20532 |
> +---------+---------+
> | auto_id |property |
> +---------+---------+
> | 1 | rot |
>
> Mit mehreren sql-statements bekomme ich es hin, doch mit einem
> einzigen will es nicht gelingen. Wenn also jemand eine idee hat, bin
> ich sehr dankbar!
>
select ... from autos,props as p1,props as p2 where
p1.auto_id = autos.id and p2.auto_id = autos.id and
( p1.prop = "rot" or p1.prop = "gruen" ) and p2.prop = "ABS";
Wo liegt das Problem?
--
Matthias Urlichs | noris network GmbH | smurf_(at)_noris.de | ICQ: 20193661
The quote was selected randomly. Really. | http://www.noris.de/~smurf/
--
Marriages are made in heaven and consummated on earth.
--John Lyly
---
*** Abmelden von dieser Mailingliste funktioniert per E-Mail
*** an mysql-de-request_(at)_lists.4t2.com mit Betreff/Subject: unsubscribe
php::bar PHP Wiki - Listenarchive