Difference between revisions of "VbzCart/queries/qrySub Carts info items"
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
|  (Created page with '==Details== * '''Requires''': {{vbzcart/table|shop_cart_line}} * '''History''': ** '''2009-09-08''' Created for Special:VbzAdmin ==SQL== <section begin=sql /><mysql>CREATE OR REP…') |  (corrected table name in SQL; changed count field name for disambiguation in combined results) | ||
| Line 4: | Line 4: | ||
| ** '''2009-09-08''' Created for Special:VbzAdmin | ** '''2009-09-08''' Created for Special:VbzAdmin | ||
| ==SQL== | ==SQL== | ||
| − | <section begin=sql /><mysql>CREATE OR REPLACE VIEW  | + | <section begin=sql /><mysql>CREATE OR REPLACE VIEW qrySub_Carts_info_items AS | 
| SELECT | SELECT | ||
| − |    ID_Cart, COUNT(ID_Cart) AS  | + |    ID_Cart, COUNT(ID_Cart) AS ItemCount | 
| FROM shop_cart_line | FROM shop_cart_line | ||
| GROUP BY ID_Cart;</mysql> | GROUP BY ID_Cart;</mysql> | ||
| <section end=sql /> | <section end=sql /> | ||
Latest revision as of 01:30, 9 September 2009
Details
- Requires:
- REDIRECT Template:l/vc/table
- History:
- 2009-09-08 Created for Special:VbzAdmin
 
SQL
<mysql>CREATE OR REPLACE VIEW qrySub_Carts_info_items AS SELECT
ID_Cart, COUNT(ID_Cart) AS ItemCount
FROM shop_cart_line GROUP BY ID_Cart;</mysql>