how to make select for multiunit

From: plasmasoftware net <administrator(at)plasmasoftware(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: how to make select for multiunit
Date: 2012-01-15 03:22:31
Message-ID: CANbab7im0hQKfmKf-MAWuM5Wt5-wwekiP6pDybv+eG9Yew__qA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

hello ...
i have stock table all stock in smallest unit ( PCS )

i have stock table like this

name qty unit
PCA 20 PCS
MOUSE 25 PCS

i have table unit
1 KRT = 12 PAK
1 PAK = 10 PCS

how to make select to display report stok in dbGRID like this :

PCA 2 KRT 0 PAK 0 PCS
MOUSE 0 KRT 2 PAK 1 PCS

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rene Romero Benavides 2012-01-15 04:25:25 Re: how to make select for multiunit
Previous Message Josh Kupershmidt 2012-01-14 17:31:44 Re: PG9.1.2 -- 3 day old orphaned/non-responsive query -- pg_(cancel)(terminate)_backend has no effect