X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id DAC355381E for ; Thu, 7 Apr 2005 08:26:27 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 66061-05 for ; Thu, 7 Apr 2005 07:26:22 +0000 (GMT) Received: from mx1.mimos.my (mx1.mimos.my [192.228.137.109]) by svr1.postgresql.org (Postfix) with ESMTP id 58CE753800 for ; Thu, 7 Apr 2005 08:26:15 +0100 (BST) Message-ID: <5039595.1112858186520.SLOX.WebMail.wwwrun@openx.mimos.my> From: Abdul Wahab Dahalan To: pgsql-sql@postgresql.org Subject: Query Problem Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Priority: 3 (normal) X-Mailer: SuSE Linux Openexchange Server 4 - WebMail (Build 2.3788) X-Operating-System: Linux 2.4.21-198-smp i386 (JVM 1.3.1_04) Organization: MIMOS Berhad Date: Thu, 7 Apr 2005 15:16:26 +0800 (MYT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200504/67 X-Sequence-Number: 20960 If I've 2 tables like this: Country table : with 2 fields (country and id) Country id England E France F Japan J FlightTo table : with 2 fields(Flight ID and Destination) FlightID Destination B1 E,J B2 E,F B3 J,F How do I make a query, so that I can get a result something like this : FlightID CountryVisited B1 England,Japan B2 England,France B3 Japan, France Any help very much appreciated. Thanks