VbzCart/queries/qryStkItms for sale

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 02:09, 4 December 2008 by Woozle (talk | contribs) (New page: ==Details== * '''Requires''': {{vbzcart/query|qryStk_lines_remaining_forSale}} * '''Used by''': {{vbzcart/query|qryStkItms_for_sale_wItem_data}} * '''History''': ** '''2008-11-17''' Create...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Details

  • Requires:
  1. REDIRECT Template:l/vc/query

SQL

<mysql>CREATE OR REPLACE VIEW qryStkItms_for_sale AS SELECT

 ID_Item,
 SUM(qsl.QtyForSale) AS QtyForSale,
 SUM(qsl.QtyForShip) AS QtyForShip,
 SUM(qsl.QtyExisting) AS QtyExisting

FROM qryStk_lines_remaining_forSale AS qsl GROUP BY ID_Item;</mysql>