You are here: SUM and GROUP « PHP SQL « IT news, forums, messages
SUM and GROUP

Posted by Brian on 12/03/07 18:44

Hi


Whats wrong with this statment?

SELECT
FROM `orders` SUM(del) AS TotalPicked
WHERE datepackedtimestamp = '1196640000'
GROUP BY packedby
ORDER BY packedby

I'm trying to end up with a list of a summed up del from each packed by

EG
John 46
Fred 189
Harry 24

Thanks

Brian







--------------------------------------------------------------------------------
I am using the free version of SPAMfighter for private users.
It has removed 564 spam emails to date.
Paying users do not have this message in their emails.
Try SPAMfighter for free now!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация