|
-
Mar 7th, 2007, 07:45 PM
#1
[Resolved]mysql question
Is it possible to do something like this:
Select (amount*days*people) as totalCost, sum(amtPaid) as amountPaid, (amountPaid - totalCost) as thisparthere?
Where I compute 2 fields and then do a calculation on them? I have been trying it, but I can't find a way to do it.
Would I have to use a temporary table or a view?
Last edited by kfcSmitty; Mar 7th, 2007 at 11:58 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|