select a.职工甲,b.姓名,a.职工乙,c.姓名
from table1 a, table2 b, table2 c
where a.职工甲 = b.代码 and a.职工乙 = c.代码
from table1 a, table2 b, table2 c
where a.职工甲 = b.代码 and a.职工乙 = c.代码
解决方案 »
- 关于C# XML解析
- C# 数组求和
- B/S结构软件,是由谁来调度“资源争夺”,IIS?数据库?程序本身?
- 初学者问题之六:C#中的接口和类
- 通过SMTP的方式用yahoo.cn的邮箱发送邮件的问题,很怪,高分(100),
- bitmap 图像错位问题 高手进 跪求解决办法!!!!!!!!!!!!!!!!!!
- sqlconnection.connectionstring 和 oledbconnection.connectionstring
- 怎么样合并表中一行的两列?
- 请高手刚忙解决,两个label.Text相加得另一个label.Text的问题?
- 怎么在dataGridView里面直接修改数据,通过btn按钮来确定保存?
- 请问用installshield做成一个文件的安装程序!谢谢
- socket 简单问题,各位大哥帮忙解决解决.
(select 职工甲 from table1) or 代码 in
(select 职工乙 from table1)
from table1 a, table2 b, table2 c
where a.职工甲 = b.代码 and a.职工乙 = c.代码
---------------------------
似乎应该把and改为or
姓名 代码
职工甲 1
职工乙 2
where a.代码=b.代码
from table1 T1,
table2 T2
where T1.职工甲 = T2.代码
or T1.职工乙 = T2.代码;
谁丫色和这么不合范式的表呀?Select T2.代码 , T2.姓名
from table1 T1,
table2 T2
where T1.职工甲 = T2.代码
or T1.职工乙 = T2.代码;
Select T2.代码 , T2.姓名
from table1 T1,
table2 T2
where T1.职工甲 = T2.代码
or T1.职工乙 = T2.代码;