Hope this works for you:
SELECT tablename.Id, tablename.Site, tablename.price, tablename.date,
t2.totalprice
FROM (SELECT Id, Sum(price) as totalprice
FROM tablename
GROUP BY id) t2
RIGHT JOIN tablename ON t2.Id = tablename.Id;
If there's an error in the FROM clause, you may need to create two separate
queries.
Jay
> Is there a way to sum a specific column in a query? What I have is a
> query that pulls several line based on a id field. I want to total just
[quoted text clipped - 13 lines]
>
> Can someone explain how to do that? Thanks for help!