VbzCart/docs/queries/qryStkItms for sale

From Woozle Writes Code
< VbzCart‎ | docs‎ | queries
Revision as of 02:07, 31 December 2015 by imported>Woozle (obsolete)
Jump to navigation Jump to search

Details

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>