VbzCart/docs/queries/qryStkItms for sale: Difference between revisions

From Woozle Writes Code
< VbzCart‎ | docs‎ | queries
Jump to navigation Jump to search
imported>Woozle
(New page: ==Details== * '''Requires''': {{vbzcart/query|qryStk_lines_remaining_forSale}} * '''Used by''': {{vbzcart/query|qryStkItms_for_sale_wItem_data}} * '''History''': ** '''2008-11-17''' Create...)
 
imported>Woozle
(also used by...)
Line 1: Line 1:
==Details==
==Details==
* '''Requires''': {{vbzcart/query|qryStk_lines_remaining_forSale}}
* '''Requires''': {{vbzcart/query|qryStk_lines_remaining_forSale}}
* '''Used by''': {{vbzcart/query|qryStkItms_for_sale_wItem_data}}
* '''Used by''': {{vbzcart/query|qryStkItms_for_sale_wItem_data}}, {{vbzcart/query|qryItems_needed_forStock}}
* '''History''':
* '''History''':
** '''2008-11-17''' Created for revised restocking process
** '''2008-11-17''' Created for revised restocking process

Revision as of 03:09, 5 December 2010

Details

SQL

<section begin=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> <section end=sql />