You are here: Re: sql query help « MsSQL Server « IT news, forums, messages
Re: sql query help

Posted by Hugo Kornelis on 04/27/06 00:50

On 26 Apr 2006 14:43:02 -0700, hharry wrote:

(snip)
>i am trying to construct a query which will return those person's with
>more than 1 date of birth
>e.g.
>person 1 has 2 dates of birth - 01/01/1980 and 15/12/1975

Hi hharry,

SELECT person_id, COUNT(*)
FROM Table1
GROUP BY person_id
HAVING COUNT(*) > 1


--
Hugo Kornelis, SQL Server MVP

 

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

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