Received: from shardagate.mahindrabt.com ([206.102.1.162]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fA19kXP54095 for ; Thu, 1 Nov 2001 04:46:35 -0500 (EST) (envelope-from aminur@mahindrabt.com) Received: from mahindrabt.com (mailscan.sharda.mahindrabt.com [10.5.0.97]) by shardagate.mahindrabt.com (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id PAA22586 for ; Thu, 1 Nov 2001 15:16:25 +0530 X-SMTP-Sending-IP: 10.5.0.15 Received: from intranet.sharda.mahindrabt.com by mahindrabt.com ; 1 Nov 2001 14:12:53 +0000 Received: from aminur ([10.5.3.176]) by intranet.sharda.mahindrabt.com (8.9.3/8.9.3) with SMTP id PAA24401 for ; Thu, 1 Nov 2001 15:15:34 +0530 X-MSReally-To: pgsql-sql@postgresql.org Message-ID: <007a01c162bb$8e74a4e0$b003050a@mahindrabt.com> From: "Md Aminur Rashid" To: Subject: problem in group by Date: Thu, 1 Nov 2001 15:26:59 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0073_01C162E9.A5B83760" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200111/4 X-Sequence-Number: 5390 This is a multi-part message in MIME format. ------=_NextPart_000_0073_01C162E9.A5B83760 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable =20 I have a table masterauthor which has columns as AUTHOR NAME and ID ( ID is primary key )=20 and a second TABLE*(sellTable ) having the numbers books of the author wh= ich are sold i mean the say that the all those authors whose books are being sold are en= tered in the second table I have to display author's name and id from the forst list grouping the aut= hor who has sold the book once Regards Amin ********************************************************* Disclaimer This message (including any attachments) contains=20 confidential information intended for a specific=20 individual and purpose, and is protected by law.=20 If you are not the intended recipient, you should=20 delete this message and are hereby notified that=20 any disclosure, copying, or distribution of this message, or the taking of any action based on it,=20 is strictly prohibited. ********************************************************* Visit us at http://www.mahindrabt.com ------=_NextPart_000_0073_01C162E9.A5B83760 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 

I have a table masterauthor which has column= s=20 as

AU= THOR=20 NAME and  ID (=20 ID is primary key ) =

and a second  TABLE*(sellTable )  having the numbers books of the author which are=20 sold

i=20 mean the say that the all those authors whose books are being sold are ente= red=20 in the second table

I have to display author's name and id from the forst= list=20 grouping the author  who  has sold the book=20 once

Regards
Amin

*********************************************************
Disclaimer

This message (including any attachments) contains
confidential information intended for a specific
individual and purpose, and is protected by law.
If you are not the intended recipient, you should
delete this message and are hereby notified that
any disclosure, copying, or distribution of this
message, or the taking of any action based on it,
is strictly prohibited.

*********************************************************
Visit us at http://www.mahindrabt.com

------=_NextPart_000_0073_01C162E9.A5B83760--