VbzCart/docs/queries/qryRstkReq Item status

From Woozle Writes Code
< VbzCart‎ | docs‎ | queries
Revision as of 02:32, 4 January 2010 by imported>Woozle (also used by qryRstkReq_Items_expected)
Jump to navigation Jump to search

Details

SQL

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

 rci.*,
 rqi.QtyOrd,
 rqi.Notes

FROM

   rstk_req_item AS rqi
 LEFT JOIN qryRstkReq_Item_Rcd_status AS rci ON (rqi.ID_Restock=rci.ID_RstkReq) AND (rqi.ID_Item=rci.ID_Item)

WHERE rci.ID_RstkReq IS NOT NULL ORDER BY rci.ID_RstkReq, rci.ID_Item;</mysql> <section end=sql />