VbzCart/docs/queries/qryItms open: Difference between revisions

From Woozle Writes Code
< VbzCart‎ | docs‎ | queries
Jump to navigation Jump to search
imported>Woozle
(New page: ==Details== * '''Returns''': Same rows as {{vbzcart/query|qryOrdItms_open}} but GROUPed by ID_Item * '''Requires''': {{vbzcart/query|qryOrdItms_open}} * '''Used by''': * '''History''': ** ...)
 
m (Woozle moved page VbzCart/VbzCart/queries/qryItms open to VbzCart/docs/queries/qryItms open without leaving a redirect: part 2)
 
(No difference)

Latest revision as of 01:55, 25 February 2024

Details

SQL

<section begin=sql /><mysql>CREATE OR REPLACE VIEW qryItms_open AS SELECT

 ID_Item,
 SUM(oio.QtyOrd) AS QtyOrd,
 SUM(oio.QtySent) AS QtySent,
 SUM(oio.QtyDone) AS QtyDone,
 SUM(oio.QtyOpen) AS QtyOpen

FROM qryOrdItms_open AS oio GROUP BY ID_Item;</mysql> <section end=sql />