![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello: I need to perform following select col1 from table1 where col2 in (select cola from tablea UNION select colb from tableb) I can't do this - get error message Server Message: Number 156, Severity 15 Server 'x', Line 24: Incorrect syntax near the keyword 'UNION'. Server Message: Number 102, Severity 15 Server 'x', Line 45: Incorrect syntax near ')'. |
#3
| |||
| |||
|
|
Hello: I need to perform following select col1 from table1 where col2 in (select cola from tablea UNION select colb from tableb) I can't do this - get error message Server Message: Number 156, Severity 15 Server 'x', Line 24: Incorrect syntax near the keyword 'UNION'. Server Message: Number 102, Severity 15 Server 'x', Line 45: Incorrect syntax near ')'. |
#4
| |||
| |||
|
|
Hello: I need to perform following select col1 from table1 where col2 in (select cola from tablea UNION select colb from tableb) I can't do this - get error message Server Message: Number 156, Severity 15 Server 'x', Line 24: Incorrect syntax near the keyword 'UNION'. Server Message: Number 102, Severity 15 Server 'x', Line 45: Incorrect syntax near ')'. |
#5
| |||
| |||
|
|
Hello: I need to perform following select col1 from table1 where col2 in (select cola from tablea UNION select colb from tableb) I can't do this - get error message Server Message: Number 156, Severity 15 Server 'x', Line 24: Incorrect syntax near the keyword 'UNION'. Server Message: Number 102, Severity 15 Server 'x', Line 45: Incorrect syntax near ')'. |
#6
| |||
| |||
|
|
Try select col1 from table1 where col2 in (select cola from tablea ) or col2 in (select colb from tableb) |
![]() |
| Thread Tools | |
| Display Modes | |
| |