VbzCart/docs/queries/qryRstkItms expected byItem

From Woozle Writes Code
< VbzCart‎ | docs‎ | queries
Revision as of 00:15, 6 January 2010 by imported>Woozle (Created page with '==About== * '''Purpose''': Returns a list of items we're currently expecting to receive in restocks, * '''Requires''': {{vbzcart/query|qryRstkItms_expected}} * '''Used by ''': re…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

About

  • Purpose: Returns a list of items we're currently expecting to receive in restocks,
  • Requires: Template:Vbzcart/query
  • Used by : restock request generation admin page
  • History:

SQL

<section begin=sql /><mysql>CREATE OR REPLACE VIEW qryRstkItms_expected_byItem AS SELECT

 ID_Item,
 SUM(QtyExp) AS QtyExp,
 SUM(QtyRecd) AS QtyRecd

FROM qryRstkItms_expected GROUP BY ID_Item;</mysql> <section end=sql />