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

Posted by hharry on 04/27/06 00:43

hello all,

i have this table:

CREATE TABLE [dbo].[Table1] (
[person_id] [int] NULL ,
[dob] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO

with these values:

insert into Table1 values ('1', '15/12/1975')
insert into Table1 values ('1', '01/01/1980')
insert into Table1 values ('2', '15/12/1975')
insert into Table1 values ('1', '15/12/1975')

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

thanks in advance

 

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

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