Results 1 to 3 of 3

Thread: [Resolved]mysql question

Threaded View

  1. #1

    Thread Starter
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    Resolved [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
  •  



Click Here to Expand Forum to Full Width