I want to select only one record from a group of similar records. How do I do that?
Let me make it more clear.
Lets say 1 husband has 1 wife or more or none.
There is a table with all the husbands with all their wives.
Now I want to run a query on that table that will give me a husband and one wife if he has one, there should not be a duplicate row for that particular husband. The column names are HusbandCol, wifecol.
Can somebody give any clues what the query should be?
Any help highly appreciated.
thank you
Let me make it more clear.
Lets say 1 husband has 1 wife or more or none.
There is a table with all the husbands with all their wives.
Now I want to run a query on that table that will give me a husband and one wife if he has one, there should not be a duplicate row for that particular husband. The column names are HusbandCol, wifecol.
Can somebody give any clues what the query should be?
Any help highly appreciated.
thank you