From: Markus Espenhain <espenhain@etes.de>
To: Postgres <pgsql-admin@postgresql.org>
Subject: SQL-Statement
Date: Tue, 16 Sep 2003 13:54:54 +0200
Message-ID: <20030916115454.GA2115@intranet.etes.de> (raw)
Hello all,
I have the problem that I must create an Querry witch looks like:
--snip--
SELECT * FROM Hauptantrag WHERE (select datenfeldname from datenexport) > (select datum_von from datenexport) AND (select datenfeldname from datenexport) < (select datenexport.datum_bis from datenexport) limit 10;
--snap--
The statement (select datenfeldname from datenexport) means an fieldname witch is saved in the relation datenexport. In this relation is only one record saved and contains the fields datenfeldname, datum_von and datum_bis.
Can I do something like this?
Have I an syntax problem?
By executing I become 0 results.
Can someone please educate me...
Thanks a lot
Markus
--
Markus Espenhain Fon: +49 (7 11) 48 90 83 - 0
ETES - EDV-Systemhaus GbR Fax: +49 (7 11) 48 90 83 - 50
Libanonstrasse 58 A * D-70184 Stuttgart Web: http://www.etes.de
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: espenhain@etes.de
Subject: Re: SQL-Statement
In-Reply-To: <20030916115454.GA2115@intranet.etes.de>
References: <20030916115454.GA2115@intranet.etes.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox