E
E
e1s2015-11-20 11:30:56
SQL Server
e1s, 2015-11-20 11:30:56

Why doesn't the following construction work in ms sql?

I can't figure out why people are complaining about this design.

select b from table 
where c in (select c1 from table2) and not in (select c2 from table3)

underlines the second in , the number of columns and their type are the same

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
s0ci0pat, 2015-11-20
@s0ci0pat

select b from table 
where c in (select c1 from table2) and c not in (select c2 from table3)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question