Re: PHP/mySQL question about groups

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Feb 6, 2008 8:46 PM, Rob Gould <gouldimg@xxxxxxx> wrote:

> Let's say I have a PHP-based wine application, and it's taking a set of
> mySQL data that looks like this:
>
> wineid                            name
> size
> 123                                 Silver Oak
> 750ML
> 123                                 Silver Oak
>  1.5L
> 123                                 Silver Oak
>  1.5L
> 456                                 Liberty School
> 750ML
> 456                                 Liberty School
> 750ML
> 456                                 Liberty School
> 750ML
> 456                                 Liberty School
> 1.5L
>

i think you can just do

group by wineid, size

-nathan

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux