Reply to Re: SQL Query

Your name:

Reply:


Posted by Hugo Kornelis on 01/14/06 00:38

On 12 Jan 2006 16:01:25 -0800, pipe.jack@gmail.com wrote:

>Excellent, thanks!
>
>Another one for you:
>How many orders included a product. If the quantity of the product in a
>single order is more then 1 then it should still count as 1 since I'm
>interested in the number of orders.
>
>Thanks again for all and any help.

Hi Jack,

SELECT ProductName, Options, COUNT(*)
FROM OrderDetails
GROUP BY ProductName, Options

--
Hugo Kornelis, SQL Server MVP

[Back to original 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

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