Reply to Re: sql counting duplicates

Your name:

Reply:


Posted by Sjoerd on 04/14/06 13:04

Dejan wrote:
> Now i wanna display all the grad_pbroj coloumns from 'smjestaj', buth not
> displaying duplicates, just to count them, and put the count behind the
> 'grad_pbroj' coloumn.
>
> Result:
> Naziv_first (3)
> Naziv_second (1)
> Naziv_third (8)

Is this what you want?

SELECT first_column, COUNT(*) FROM my_table GROUP BY first_column;

[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

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