Hi there,
I have the following SQL which I have shortened
Bit I am having an issue with is AND (('BusOps_Region') <> '/')) as BusOps_Region is set in the Select statement.
The SQL runs fins as it is but is ingoring this Where Clause.
Any help much appreciated
Thanks
Geoff
I have the following SQL which I have shortened
Code:
SELECT DISTINCT
TMA.tblB0100_Accounts.Suspected_Non_Biller
,'BusOps_Region' =
CASE
WHEN TMA.tblA1000_Country_OpCo_Codes.Region Is Null THEN TMA.tblA1000_Country_OpCo_Codes.region
ELSE TMA.tblA1000_Country_OpCo_Codes.region
END
WHERE (((TMA.tblB0200_Account_Details.Inactive)=0)
AND ((TMA.tblB0200_Account_Details.Account_Type)='Corporate')
AND (('BusOps_Region') <> '/'))
Bit I am having an issue with is AND (('BusOps_Region') <> '/')) as BusOps_Region is set in the Select statement.
The SQL runs fins as it is but is ingoring this Where Clause.
Any help much appreciated
Thanks
Geoff