View Single Post
  #2 (permalink)  
Old 01-28-10, 05:49 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
Move the quote to the end of the string.

SQL_query = "SELECT products, SUM(sales) AS Totalsales FROM Customer GROUP BY products";
Reply With Quote