我有 2 张桌子。
1.Message - Sender_Number,SMS,DateTime.
2.Replies - Receiver_Number,SMS,DateTime.
我想合并所有列并将 2 个 DateTime 列合并为一列并按时间排序。
例如:
Messages Table:
123 | Hello there. | 2012-10-22 3:50
121 | HI I like U..| 2012-10-22 9:10
Replies Table:
123 | how are u... | 2012-10-22 5:50
121 | HI I like U2 | 2012-10-22 9:30
DESIRED OUTPUT (In 1 table):
123 | Hello there. | 2012-10-22 3:50
123 | how are u... | 2012-10-22 5:50
121 | HI I like U..| 2012-10-22 9:10
121 | HI I like U2 | 2012-10-22 9:30