Re: Inserting data of two other tables [Now deleting ...] - Mailing list pgsql-novice

From Nabil Sayegh
Subject Re: Inserting data of two other tables [Now deleting ...]
Date
Msg-id 1054128328.1503.4.camel@billy
Whole thread Raw
In response to Re: Inserting data of two other tables [Now deleting ...]  (papapep <papapep@gmx.net>)
Responses Re: Inserting data of two other tables [Now deleting ...]
List pgsql-novice
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


pgsql-novice by date:

Previous
From: papapep
Date:
Subject: Re: Inserting data of two other tables [Now deleting ...]
Next
From: Mauro Bertoli
Date:
Subject: Create Table Unique problem... bug?