Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 Other Forums
 MS Access
 Trouble with Query
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

3 Posts

Posted - 06/07/2014 :  19:16:01  Show Profile  Reply with Quote
Hi All,

I'm trying to use Excel as a data source and am making the query using MS Query.
The following query worked using SQL Server Management Studio but is not working for Excel:
from emp as e1, [role] as r1, conflict as d1
e1.[role]=r1.[role] and
and exists (select 1
from emp as e2, [role] as r2, conflict as d2
d2.duty=r2.duty and
r2.[role]=e2.[role] and
and r2.role<>r1.role
and r2.duty<>r1.duty
and r2.duty=d1.conflict
order by


Please advice.

Thanks and regards !
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.07 seconds. Powered By: Snitz Forums 2000