ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   excel problem (https://www.excelbanter.com/excel-discussion-misc-queries/100513-excel-problem.html)

ioshicumine

excel problem
 
Hi

I have a problem in excel when i try to import data from MSSql with Import
external data: I must use the same condition in two places in the same
query..something like that:

select col2 from d where col1=? union select col3 from d where id not in
(select col2 from d where col1=?)

this query works perfectly in MSSql, but when I try to do this in my ".dqy"
file the excel tell me I have an error in my sql...

pls help me



All times are GMT +1. The time now is 07:27 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com