VbzCart/queries/qryRstkReq Item status Req info

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search

Details

  • Returns: Data from
  1. REDIRECT Template:l/vc/query with some additional info about the request
  1. REDIRECT Template:l/vc/table
  • Used by: sfrmItem_Rstks (MS Access)
  • History:
    • 2008-11-23 Created for new restock process
    • 2008-12-22 Added WhenOrphaned field, so we can see all possible causes of a restock being inactive

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>