List:General Discussion« Previous MessageNext Message »
From:Johan Höök Date:October 31 2005 12:29pm
Subject:Re: How can I do?
View as plain text  
Hi Priscilla,
you can do:
SELECT (SELECT SUM(t1.field) FROM table1 t1) +
        (SELECT SUM(t2.field2) FROM table t2) +
        (SELECT SUM(t3.field3) FROM table t3)

/Johan

Priscilla Labanca wrote:
> Hi, guys! 
>  
> I need to sum three fields of three different tables.... how can I do?
> 
>>Thank you very much.
>>
>>Priscilla.
> 
> 
>  
> 		
> ---------------------------------
>  Promoção Yahoo! Acesso Grátis: a cada hora navegada você
> acumula cupons e concorre a mais de 500 prêmios! Participe!
> 
> 
> ------------------------------------------------------------------------
> 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.362 / Virus Database: 267.12.6/151 - Release Date: 2005-10-28

Thread
stoppin mysql/gave up waitingMayuran Yogarajah28 Oct
  • Re: stoppin mysql/gave up waitingGleb Paharenko31 Oct
    • How can I do?Priscilla Labanca31 Oct
      • Re: How can I do?Victor V. Melnichenko31 Oct
        • Re: How can I do?Priscilla Labanca31 Oct
          • RE: How can I do?Paul Rhodes31 Oct
          • Re: How can I do?Johan Höök31 Oct