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

From Woozle Writes Code
< VbzCart‎ | docs‎ | queries
Jump to navigation Jump to search
imported>Woozle
(obsolete)
m (Woozle moved page VbzCart/VbzCart/queries/qryStkItms for sale to VbzCart/docs/queries/qryStkItms for sale without leaving a redirect: part 3/5)
 
(No difference)

Latest revision as of 01:56, 25 February 2024

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>