VbzCart/queries/qryStkItms for sale
Jump to navigation
Jump to search
Details
- Requires:
- REDIRECT Template:l/vc/query
- Used by: qryStkItms_for_sale_wItem_data
- History:
- 2008-11-17 Created for revised restocking process
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>