IF statement in SQL Pass Through Query
I am writing a pass through query to SQL.
Since the query is performed by SQL Server, does anyone know how to write the equivalent of an IIF or If then statement in the query?
With Jet database I would state something like:
SELECT IIF([Job Name] = "Stoney Creek","Yes","No") AS Job Exists
FROM MasterJobs;
If there is anything close that would deliver the same results it would help me out a ton.
Thanks,
Coby.
|