SELEZIONARE InvMovements.StockCode COME stockcode,
massimo (InvMovements.TrnType) COME TranType,
massimo (InvMaster.ProductClass),
somma (InvMovements.TrnQty)
Da InvMovements
INTERNO UNIRE InvMaster SU InvMovements.StockCode = InvMaster.StockCode
dove (InvMovements.TrnType = “R ") E (InvMaster.ProductClass DENTRO (“il TM„, “PM„, “PDM„, “PRM ")) E (InvMovements.EntryDate <>= CONVERTITO (DATETIME, “00:00 2010-05-01: 00„, 102))
GRUPPO da InvMovements.StockCode
ORDINE da InvMovements.StockCode
|