From: | "Shridhar Daithankar" <shridhar_daithankar(at)persistent(dot)co(dot)in> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: table linking problem |
Date: | 2002-10-07 13:52:06 |
Message-ID: | 3DA1DEDE.6030.1067C81A@localhost |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 5 Oct 2002 at 0:35, XBXtXX wrote:
> content
> content_id | material_id | percentage
> -----------------------------------------------------
> 1 1 100%
> 2 2 63.5%
> 2 3 31.5%
> 2 4 5%
>
> material
> material_id | name
> ------------------------------------------
> 1 COTTON
> 2 POLYESTER
> 3 NYLON
> 4 SPANDEX
>
> The Question is,
> How can I get like this :
> 100% COTTON
> 63.5% POLYESTER 31.5% NYLON 5% SPANDEX
select a.percentage,b.name from content a, material b where
a.material_id=b.material_id;
HTH
Bye
Shridhar
--
kern, v.: 1. To pack type together as tightly as the kernels on an ear of corn.
2. In parts of Brooklyn and Queens, N.Y., a small, metal object used as part
of the monetary system.
From | Date | Subject | |
---|---|---|---|
Next Message | Richard Huxton | 2002-10-07 13:53:26 | Re: Scale, Normalization, and Table Count |
Previous Message | Shridhar Daithankar | 2002-10-07 13:37:51 | Re: Efficient date range search? |