Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
'Case' question
Message
 
To
02/04/2007 17:03:05
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:
01211498
Views:
10
Why not?
   Select Table1.Loanumber,Sum(Isnull(Amount,0)) As Cuota From Table1
   Where Isnull(Amount,0)>0  --- Not really necessary
Enmanuel

>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.
>What can I do?...
>Thanks in advance.
>
>Carlos Burgos
I'm a mixture of Albert Einstein and Arnold Schwarzenegger. The only trouble is that I got Einstein's body and Schwarzenegger's brain
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform