VbzCart/docs/queries/qryCbx RstkReq: Difference between revisions

From Woozle Writes Code
< VbzCart‎ | docs‎ | queries
Jump to navigation Jump to search
imported>Woozle
m (→‎About: this may actually be inferior to the one I did in Access)
m (Woozle moved page VbzCart/VbzCart/queries/qryCbx RstkReq to VbzCart/docs/queries/qryCbx RstkReq without leaving a redirect: part 2)
 
(No difference)

Latest revision as of 01:55, 25 February 2024

About

  • Purpose: for use in drop-down lists
  • Requires: Template:Vbzcart/query, Template:Vbzcart/query
  • History:
    • 2008-12-22 Adapted from the discarded query qryCbxRestock
  • Notes:
    • MySQL gives a "query cancelled" error when running this SQL to create the view, but actually it creates it just fine.
    • This version may actually be inferior to the one I created (recently) in Access. There's also a version for received restocks.

SQL

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

 SELECT * FROM qryRstkReq_by_status WHERE Descr IS NOT NULL

UNION

 SELECT * FROM qryRstkReq_by_PurchOrd WHERE Descr IS NOT NULL;</mysql>

<section end=sql />