VbzCart/docs/queries/qryCarts info

From Woozle Writes Code
< VbzCart‎ | docs‎ | queries
Jump to navigation Jump to search

Details

SQL

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

 c.*,
 ItemCount,
 DataCount

FROM (shop_cart AS c

 LEFT JOIN qrySub_Carts_info_items AS ci ON ci.ID_Cart=c.ID)
 LEFT JOIN qrySub_Carts_info_data as cd ON cd.ID_Cart=c.ID;</mysql>

<section end=sql />