是否有任何格式化sql语句结果如下.......
TABLE1
ID ticket_number
1 2001
2 2002
Table2
tn name create_time
2001 sms_to_customer 2013-05-05 10:10:19
2001 sms_to_officer1 2013-05-05 11:17:01
2001 sms_to_officer2 2013-05-05 12:14:05
2002 sms_to_officer1 2013-05-05 09:17:01
2002 sms_to_officer2 2013-05-05 09:30:05
我想要这样的结果......
ticket_number sms_to_customer sms_to_officer1 sms_to_officer2
2001 2013-05-05 10:10:19 2013-05-05 11:17:01 2013-05-05 12:14:05
2002 NA 2013-05-05 09:17:01 2013-05-05 09:30:05