Hi guys,
I have a table with the following data:
Rank Name Name_Id isMale
1 Jacob 20288 1
1 Joshua 19962 1
2 Matthew 18907 1
2 Michael 24096 1
3 Daniel 21708 1
3 David 21838 1
4 Faith 29717 0
4 Hope 28258 0
I want to group the names on Rank and have the query returned as:
Rank Name_1 Name_Id_1 isMale_1 Name_2 Name_Id_2 isMale_2
1 Jacob 20288 1 Joshua 19962 1
2 Mathew 18907 1 Michael 24096 1
3 Daniel 21708 1 David 21838 1
4 Faith 29717 0 Hope 28258 0
Any help would be highly appreciated.
Thanks!
I have a table with the following data:
Rank Name Name_Id isMale
1 Jacob 20288 1
1 Joshua 19962 1
2 Matthew 18907 1
2 Michael 24096 1
3 Daniel 21708 1
3 David 21838 1
4 Faith 29717 0
4 Hope 28258 0
I want to group the names on Rank and have the query returned as:
Rank Name_1 Name_Id_1 isMale_1 Name_2 Name_Id_2 isMale_2
1 Jacob 20288 1 Joshua 19962 1
2 Mathew 18907 1 Michael 24096 1
3 Daniel 21708 1 David 21838 1
4 Faith 29717 0 Hope 28258 0
Any help would be highly appreciated.
Thanks!