VbzCart/docs/queries/qryRstkReq Item status Req info

From Woozle Writes Code
< VbzCart‎ | docs‎ | queries
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,
 rq.WhenOrphaned

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 />