VbzCart/queries/qryStk Bins w info
Jump to navigation
Jump to search
About
- Returns: stk_bins with additional information (currently just stock quantities, but other fields could be added)
- Requires: stk_bins,
- REDIRECT Template:l/vc/query
- Used by: Special:VbzAdmin's stock bin listing page
- History:
- 2009-04-29 Created for Special:VbzAdmin
SQL
<mysql>CREATE OR REPLACE VIEW qryStk_Bins_w_info AS
SELECT sb.*, sq.QtyForSale, sq.QtyForShip, sq.QtyExisting FROM stk_bins AS sb LEFT JOIN qryStk_lines_remaining_byBin AS sq ON sb.ID=sq.ID_Bin;</mysql>