Am Mit, 2003-05-28 um 14.52 schrieb papapep:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I've made a try with this:
>
> SELECT count(journey) from DETALLTRAJECTES where EXISTS (SELECT NULL
> from CAPTRAJECTE,DETALLTRAJECTES where pkey=journey and fecha=20030423);
>
> and it doesn't work properly (at least it doesn't do what I need...)
>
> In my last mail (this is for Nabil) I made a mistake in what I told you.
> The date to filter the rows to remove is in CAPTRAJECTES, and the rows
> to remove are in DETALLTRAJECTES. CAPTRAJECTES has a field called "pkey"
> and DETALLTRAJECTES another called "journey" that are the join between
> the two tables.
please send us the output of all involved tables with \d
e.g.:
\d DETALLTRAJECTES
bye
--
e-Trolley Sayegh & John, Nabil Sayegh
Tel.: 0700 etrolley /// 0700 38765539
Fax.: +49 69 8299381-8
PGP : http://www.e-trolley.de