我有两张桌子:
表格1
id name qty
1 Tedd 6
2 Jim 7
3 Sally 8
4 Victoria 1
表2
id name qty
1 Tedd 2
2 Jim 2
3 Sally 2
4 Victoria 1
5 Alex 9
我需要从 Table1 中选择所有行。但是,如果 Table2 中存在 Table1 中不存在的行,我需要将其包含在结果集中。所以,最后,我的查询应该返回这个:
id name qty
1 Tedd 6
2 Jim 7
3 Sally 8
4 Victoria 1
5 Alex 9
有没有办法我可以做到这一点?谢谢。