当前位置: 代码迷 >> Sql Server >> 一个很白痴的语法有关问题
  详细解决方案

一个很白痴的语法有关问题

热度:38   发布时间:2016-04-27 13:23:03.0
一个很白痴的语法问题
database definition:
employee(employee_name,street,city)
works(employee_name,company_name,salary)

然后我的query是这个样子的:
SQL code
(select *from employee inner join works using (employee_name))except(select *from employee inner join works using (employee_name)where company_name = 'First Bank Corporation')

except前后的两个句子我都验证过,没有错啊??
有木有人提点下~~
感激不尽~~

------解决方案--------------------
SQL code
select *from employee inner join works using (employee_name)exceptselect *from employee inner join works using (employee_name)where company_name = 'First Bank Corporation'
  相关解决方案