![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, Probable there is a simple solution for this, hopefully someone can direct me in the right direction. I have a table with a persons firstname, lastname, birthdate and address. However, I want to select only one person per address, namely the eldest of all persons living on the same address. Can anyone provide me a solution? Thanks in advance. Duncan |
#3
| |||
| |||
|
|
Unless there are twins who are both the oldest this will do what you ask. SELECT * FROM SomeTable as A WHERE birthdate = (SELECT MIN(birthdate) FROM SomeTable as B WHERE A.address = B.address) Roy Harvey Beacon Falls, CT |
![]() |
| Thread Tools | |
| Display Modes | |
| |