Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
There has got to be a way.
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
There has got to be a way.
Miscellaneous
Thread ID:
00535196
Message ID:
00535196
Views:
47
I've been handed this access query to convert to VFP sql passthru and I really don't like my answer to the convertion. I would like any others' ideas.

SQL V 6.5
field a = datetime-----Time portion is incorrect.
field b = char(5)------Has correct time for field a
multible records per
some a and/or b may be null

I did not design either the access query or the SQL data and I can't change the SQL file.

Here is the ACCESS Statement I'm converting. I've got one that works but It's a mile and ahalf long. I know that there has to be a better way.

select Min(CVDate(IIf(([a] & " " & [b])="",Null,[a] & " " & [b]))) AS ARRIVAL

Anyone?

Jeff

It's Time to get a gun.

That's what I've been thinkin.

I think I can afford one, If I do a little less Drinkin.

www.TrueGeeks.com
Next
Reply
Map
View

Click here to load this message in the networking platform