Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
'Case' question
Message
From
03/04/2007 14:55:10
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01211479
Message ID:
01211765
Views:
16
Something like this. Notice that I have more than one WHEN clause...In
my complete group command I have at least 5 lines of WHEN´S...




SELECT table1.loanumber, 'CUOTA' =
CASE
WHEN sum(table1.amount) is null then 0
WHEN sum(table1.amount) > 0 then table1.amount
ELSE ..anything else....
END
FROM table1
where table1.amount > 0
having CUOTA >0
GO


thanks
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform