Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sql Server to Visual FoxPro
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01502416
Message ID:
01502480
Views:
96
Thanks!

>Hi Tommy,
>
>If I understood correctly:
>
>
>SELECT icase(intSaletype = 1, 'Sale', intSaletype = 2, 'Return', 'Something else') as SaleType from table
>
>
>
>>Hey Guys.....
>>
>>From my boss....
>>
>>
>>"Can either of you tell me what the syntax is to do a CASE statement in a db lookup, for a fox pro db.
>>
>>This is what it would look like for sql server:
>>
>>SELECT ‘Sale Type’ = CASE intSaletype WHEN 1 THEN ‘Sale’ WHEN 2 THEN ‘Return’ ELSE ‘Something else’ END
>>FROM <table>
>>"
>>
>>Any idea? I am not skilled mssql, so that's why I'm asking you gurus....
Tommy Tillman A+ NetWork+ MCP
Previous
Reply
Map
View

Click here to load this message in the networking platform