求sql语句:同时取主表数据及从表中最新的一条数据
主表:tbA
-----------------------------------
a_id a_name
1 杨天
2 张三
从表:tbB
------------------------------------
b_id b_time b_content a_id
1 2007-07-01 睡觉 1
2 2007-07-02 学习 1
3 2007-07-03 生病 1
要求取出来是这样的结果:
------------------------------------
a_id a_name b_id b_time b_content
1 杨天 3 2007-07-03 生病
2 张三 null null null
谢谢大家!