In a table I have a column with ID numbers (values)and a similar column having names (text) linked to these ID numbers. There are many records that have the same ID.
In another column there are values (ages of siblings). In case of multiple IDs, I need only the records of IDs that have the lowest value in that second column.
Example of table:
ID Name Age siblings Other1 Other2 Other3
1 Mary 2 … … …
2 Stephany 4 … … …
3 Carol 8 … … …
3 Carol 5 … … …
4 Louise 1 … … …
5 Jennifer 4 … … …
5 Jennifer 3 … … …
5 Jennifer 7 … … …
6 Kim 5 … … …
What I need after after filtering the multiple IDs, based on the lowest age of siblings for each particular ID.
Example of desired result:
ID Name Age siblings Other1 Other2 Other3
1 Mary 2 … … …
2 Stephany 4 … … …
3 Carol 5 … … …
4 Louise 1 … … …
5 Jennifer 3 … … …
6 Kim 5 … … …
In the output, all records of all IDs appear, and all appear only once, with the record containing the age of the younghest sibling.
This example I did manually, but I have to deal with a table of approximately 80.000 records (rows). Any suggestion, no mather how complicated, is more than welcome. Thanks in advance.
In another column there are values (ages of siblings). In case of multiple IDs, I need only the records of IDs that have the lowest value in that second column.
Example of table:
ID Name Age siblings Other1 Other2 Other3
1 Mary 2 … … …
2 Stephany 4 … … …
3 Carol 8 … … …
3 Carol 5 … … …
4 Louise 1 … … …
5 Jennifer 4 … … …
5 Jennifer 3 … … …
5 Jennifer 7 … … …
6 Kim 5 … … …
What I need after after filtering the multiple IDs, based on the lowest age of siblings for each particular ID.
Example of desired result:
ID Name Age siblings Other1 Other2 Other3
1 Mary 2 … … …
2 Stephany 4 … … …
3 Carol 5 … … …
4 Louise 1 … … …
5 Jennifer 3 … … …
6 Kim 5 … … …
In the output, all records of all IDs appear, and all appear only once, with the record containing the age of the younghest sibling.
This example I did manually, but I have to deal with a table of approximately 80.000 records (rows). Any suggestion, no mather how complicated, is more than welcome. Thanks in advance.