Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
'Case' question
Message
 
 
À
02/04/2007 17:03:05
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:
01211601
Vues:
12
It's not clear what you're trying to do. Try following and if it doesn't give result you want, provide more details. Also take a look at ISNULL() function.
SELECT 	loanumber, SUM(amount ) AS Cuota
FROM table1
WHERE amount > 0
GROUP BY loanumber
>Hi friends. I have the following group of command in SQL:
>
>SELECT table1.loanumber, 'CUOTA' =
> CASE
> WHEN sum(table1.amount) is null then 0
> ELSE table1.amount
> END
>FROM table1
>where table1.amount > 0
>having CUOTA >0
>GO
>
>
>But, it send an error message : Invalid colun name 'CUOTA'
>Really I have more command lines in this group but this is the central idea.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform