Can I please get some help with some SQL syntax? I am trying to query a Progress v9.1D database in Crystal 9 using the Merant 3.60 SQL92 odbc driver. If I was doing this in Access I would write the following..
SELECT IIf([pub_activity].[activitycode]="00","Working",[pub_activity].[activitycode]) AS ProdStatNew, PUB_Activity.ActivityCode
FROM PUB_Activity
GROUP BY IIf([pub_activity].[activitycode]="00","Working",[pub_activity].[activitycode]), PUB_Activity.ActivityCode;
I'm new to this and not sure how to structure the if function? If nnot could you please point me in the right direction to find out?
Thanks..
SELECT IIf([pub_activity].[activitycode]="00","Working",[pub_activity].[activitycode]) AS ProdStatNew, PUB_Activity.ActivityCode
FROM PUB_Activity
GROUP BY IIf([pub_activity].[activitycode]="00","Working",[pub_activity].[activitycode]), PUB_Activity.ActivityCode;
I'm new to this and not sure how to structure the if function? If nnot could you please point me in the right direction to find out?
Thanks..