Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
'Case' question
Message
De
03/04/2007 14:55:10
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01211479
Message ID:
01211765
Vues:
18
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform