我有两张表,person(id, phonetype, phonenumber), phonetype(id, txtDisplay)。例如
电话号码
Id txtDisplay
1 Home Phone
2 Work Phone
3 Mobile Phone
人
Id phonetype phonenumber
0001 1 6310001111
0001 2 6310001112
0002 3 5160002113
0003 2 7180003112
结果表应该是
Id home_phone work_phone mobile_phone
0001 6310001111 6310001112
0002 5160002113
0003 7180003112
我该如何为此编写查询?