VbzCart/docs/queries/qryRstkReq Item status Req info

From Woozle Writes Code
< VbzCart‎ | docs‎ | queries
Revision as of 00:35, 4 December 2008 by imported>Woozle (New page: ==Details== * '''Returns''': Data from {{vbzcart/query|qryRstkReq_Item_status}} with some additional info about the request * '''Requires''': {{vbzcart/query|qryRstkReq_Item_status}}, {{vb...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Details

SQL

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

 rqis.*,
 IFNULL(rq.WhenOrdered,rq.WhenCreated) AS WhenMade,
 rq.WhenClosed,
 rq.WhenKilled

FROM qryRstkReq_Item_status AS rqis LEFT JOIN rstk_req AS rq ON rqis.ID_RstkReq=rq.ID ORDER BY WhenMade,ID_RstkReq;</mysql> <section end=sql />