I have a table with three colunms PERSON_ID, MONTH, YEAR.
I need to show only the first MONTH and YEAR of all persons.
espected result:
I try with TOP 1 , DISTINCT and nothing...
Code:
[u]PERSON_ID MONTH YEAR[/u]
1071403 5 1991
1071403 6 1991
1071403 7 1991
1071403 1 1992
1183071 3 1991
1183071 5 1991
1183071 9 1991
1183071 3 1992
1097890 9 1995
1097890 4 1995
I need to show only the first MONTH and YEAR of all persons.
espected result:
Code:
PERSON_ID MONTH YEAR
1071403 5 1991
1183071 3 1991
1097890 4 1995
I try with TOP 1 , DISTINCT and nothing...