0

Is it possible to make an where var1!=var2 ? because when I try the compiler said it"s an invalid operator . (i also tried NOT IS).

The full Error-Message:

Invalid use of '.', '!', or '()'. in query expression
        'emp_course.e_id!=employee.e_id'
2

2 Answers 2

6

Have you tried this:

where var1 <> var2

TSQL allows both != and <>, whereas other dialects have different rules.

Sign up to request clarification or add additional context in comments.

4 Comments

yeah I also tried this this will not throw an error but it seams not to work ... maybe i have a mess in the other part of my sql query ...
Possibly - if you are having trouble with it create a new question and post the link in the comments here, and I'll have a look :)
thanks so much :) i just have to wait another 14min to post it because i'm a newbie here ;)
0

As the MSDN sais it should be expression < > expression

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.