VbzCart/docs/queries/qryPkgLines byOrdLine andItem: Difference between revisions
Jump to navigation
Jump to search
imported>Woozle (New page: ==Details== * '''Requires''': {{vbzcart/table|ord_pkg_lines}} * '''Used by''': ==SQL== <section begin=sql /><mysql>CREATE OR REPLACE VIEW qryPkgLines_byOrdLine_andItem AS SELECT ID_OrdLi...) |
m (Woozle moved page VbzCart/VbzCart/queries/qryPkgLines byOrdLine andItem to VbzCart/docs/queries/qryPkgLines byOrdLine andItem without leaving a redirect: part 2) |
(No difference)
|
Latest revision as of 01:55, 25 February 2024
Details
- Requires: Template:Vbzcart/table
- Used by:
SQL
<section begin=sql /><mysql>CREATE OR REPLACE VIEW qryPkgLines_byOrdLine_andItem AS SELECT
ID_OrdLine, ID_Item, Sum( IFNULL(pl.QtyShipped,0)+ IFNULL(pl.QtyNotAvail,0)+ IFNULL(pl.QtyKilled,0) ) AS QtyDone, Sum(pl.QtyShipped) AS QtyShipped, Sum(pl.QtyNotAvail) AS QtyNotAvail, Sum(pl.QtyKilled) AS QtyKilled, Sum(pl.QtyExtra) AS QtyExtra
FROM ord_pkg_lines AS pl GROUP BY ID_OrdLine, ID_Item;</mysql> <section end=sql />