I am trying to convert a T-SQL query to DB2 (v.9.7) query but have no luck.
I have tested following T-SQL query using query tool of SQL Server Management Studio and it works fine as expected.
SELECT CASE WHEN (EXISTS (SELECT NULL FROM "CUSTOMERS" t0) ) THEN 1 ELSE 0 END AS "value"
The query is originally from following C# code:
TestQuery(() => db.Customers.Any());
I try to run the query using query tool of IBM Data Studio 4.1.0.1 Client and get error: SQLCODE=-104, SQLSTATE=42601, DRIVER=4.17.30
How to convert it to DB2 correctly?
Any help would be greatly appreciated! Thanks in advance.
Magnus