VbzCart/docs/queries/qryCbx Orders
Jump to navigation
Jump to search
About
- Requires: Template:Vbzcart
- Used by: various forms, I think
- Fields:
- ID_Pull and WhenNeeded are needed for Template:Vbzcart/query
SQL
<section begin=sql /><mysql>CREATE OR REPLACE VIEW qryCbx_Orders AS SELECT
ID, CONCAT_WS(' due ',CAST(Number AS CHAR),DATE_FORMAT(WhenNeeded,'%Y-%m-%d')) AS Descr, ID_Pull, WhenNeeded
FROM core_orders ORDER BY CONCAT(IFNULL(SortPfx,),Number) DESC;</mysql> <section end=sql />