你好,各位 Stack Overflow 的用户。
我正在处理一个需要使用 Access 数据库的项目。以下是设置:
我有三个表:
我想要实现的是:如果ID不匹配,我希望有一种方法将“未知”放入“团队”字段。有什么想法吗?
提前感谢!
我正在处理一个需要使用 Access 数据库的项目。以下是设置:
我有三个表:
Tab1 with employee names, ID#s, Manager names and Manager ID#s.
Tab2 with chat info, employee ID#s and employee names.
Tab3 with Manager ID#s, Manager names and team names.
我目前有一个查询,选择以下内容:
tab2.[employee name], tab2.[employee id], tab3.[chat info], tab1.[manager id], tab1.[manager id], tab3.[team name]
where
tab2.[employee id] = tab1.[employee id] and tab2.[manager id] = tab3.[manager id];
我想要实现的是:如果ID不匹配,我希望有一种方法将“未知”放入“团队”字段。有什么想法吗?
提前感谢!