VbzCart/queries/qryItms open

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< VbzCart‎ | queries
Revision as of 21:25, 3 December 2008 by Woozle (talk | contribs) (New page: ==Details== * '''Returns''': Same rows as {{vbzcart/query|qryOrdItms_open}} but GROUPed by ID_Item * '''Requires''': {{vbzcart/query|qryOrdItms_open}} * '''Used by''': * '''History''': ** ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Details

  • Returns: Same rows as
  1. REDIRECT Template:l/vc/query but GROUPed by ID_Item
  • Requires: qryOrdItms_open
  • Used by:
  • History:
    • 2008-11-18 created for new restocking process

SQL

<mysql>CREATE OR REPLACE VIEW qryItms_open AS SELECT

 ID_Item,
 SUM(oio.QtyOrd) AS QtyOrd,
 SUM(oio.QtySent) AS QtySent,
 SUM(oio.QtyDone) AS QtyDone,
 SUM(oio.QtyOpen) AS QtyOpen

FROM qryOrdItms_open AS oio GROUP BY ID_Item;</mysql>