R: Inventory Query

2002-12-16 Thread Gigi Di Leo
[EMAIL PROTECTED] > Oggetto: RE: Inventory Query > > > Try this: > > SELECT t1.id AS prod_id, t1.description AS > Description,SUM(t2.quantities) AS Purchases, > SUM(t3.quantities) AS Sellings, (Purchases-Sellings) AS Inventory > FROM Products t1 INNER JOIN Purchases t2 ON

RE: Inventory Query

2002-12-16 Thread Adolfo Bello
> -Original Message- > From: Gigi Di Leo [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 16, 2002 12:03 PM > To: '[EMAIL PROTECTED]' > Subject: Inventory Query > > > Hello list. > > Could you please suggest me a one-line query to solve a &

Inventory Query

2002-12-16 Thread Gigi Di Leo
Hello list. Could you please suggest me a one-line query to solve a problem of inventory ? Three table: Products - | id | description | - | 01 | bread| | 02 | milk | | 03 | coffee | ---