TomBarrand
Programmer
I am using the sql statement below with SQL Server and it works ok. The syntax is not valid against an Informix db, any ideas why?
Select Curr_ISO_Code,1 as type from Currency where Curr_Status = 'A' and Curr_ISO_Code = 'GBP' union Select Curr_ISO_Code,2 as type from Currency where Curr_Status = 'A' and Curr_ISO_Code = 'USD' union Select Curr_ISO_Code,3 as type from Currency where Curr_Status = 'A' and Curr_ISO_Code = 'HKD' union Select Curr_ISO_Code,4 as type from Currency where Curr_Status = 'A' and Curr_ISO_Code not in ('GBP','USD','HKD') order by type DESC
Thanks
Select Curr_ISO_Code,1 as type from Currency where Curr_Status = 'A' and Curr_ISO_Code = 'GBP' union Select Curr_ISO_Code,2 as type from Currency where Curr_Status = 'A' and Curr_ISO_Code = 'USD' union Select Curr_ISO_Code,3 as type from Currency where Curr_Status = 'A' and Curr_ISO_Code = 'HKD' union Select Curr_ISO_Code,4 as type from Currency where Curr_Status = 'A' and Curr_ISO_Code not in ('GBP','USD','HKD') order by type DESC
Thanks