Ok so here is a very simplified version of the table I am using:
SSN ADDRESS FundCompany
1. 777-77-7777 1 Smith St Company A
2. 777-77-7777 1 Smith St Company B
3. 777-77-7777 1 Smith St Company B
4. 888-88-8888 2 Water St Company A
5. 888-88-8888 2 Water St Company D
I need a query that would that would pull the SSN and the Address BUT only for the first record of each SSN.
So the result of this query would be:
SSN ADDRESS
1. 777-77-7777 1 Smith St
2. 888-88-8888 2 Water St
What would the WHERE clause for this kind of SQL statement be?
Thanks everyone.
BM
SSN ADDRESS FundCompany
1. 777-77-7777 1 Smith St Company A
2. 777-77-7777 1 Smith St Company B
3. 777-77-7777 1 Smith St Company B
4. 888-88-8888 2 Water St Company A
5. 888-88-8888 2 Water St Company D
I need a query that would that would pull the SSN and the Address BUT only for the first record of each SSN.
So the result of this query would be:
SSN ADDRESS
1. 777-77-7777 1 Smith St
2. 888-88-8888 2 Water St
What would the WHERE clause for this kind of SQL statement be?
Thanks everyone.
BM