Alright, I did that but I have a few questions.

First, I still received a total_price of 0.60 with 15 records return of which 
the first several records had a price of 0.60.

Secondly, why should I have removed them from the SELECT and GROUP BY?  I'd 
like to understand better.
Also, in this case, what should I do if I also need the gs_price, which in this 
case, I do.  I'm assuming that I can get both the item list and the total in on 
query.

thanks for the help!

>Remove the s.gs_price from the select clause and the group by clause
>if you want a sum on this column:
>
>SELECT p.si_id,s.food_store_id, SUM(s.gs_price) AS total_price
>FROM fsnep_food_store_purchases p, fsnep_food_store
>s,fsnep_food_store_game_info g
>WHERE p.food_store_id = s.food_store_id
>   AND g.gi_id = #cookie.fsnep_bargain_hunt_gi_id#
>GROUP BY p.si_id,s.food_store_id
>-- 
>Eddie Awad.
>http://awads.net/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211612
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to