用sql显示如图所示的查询结果 创建testtable1与testtable2表。创建语句如下
select ta.*,ISNULL(department,'黑人') from testtable2 ta left join testtable1 tb on ta.dptid=tb.id