Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  SQL operation on two values from another table?

phpMyEdit General     SQL operation on two values from another table?
Odoslať novú tému   Odpovedať na tému    
 
gstaniak     Založený: 06.04.2006   Príspevky: 7  
Príspevok Zaslal: 2006-04-06 13:38
Návrat hore  Odpovedať s citátom     

Hi everybody,

I'm trying to set up an installation in which one column in a table would display a sum of two columns (counters) in another table. That is, if I display table A with column 'f', and counters 'x','y' are kept in table B (has to be that way, unfortunately), I would like to present column A.f as B.x + B.y (like with normal '+' arithmetic operation). I know I can use SQL expressions on table A columns, and I know i can use 'column' options for restricting user input, but it's not obvious to me how I could present sum of two columns in table B as one column in installation for table A. Is it possible at all? Thanks in advance, any help will be greatly appreciated.

Regards,
--
Grzegorz Staniak
<gstaniak@gmail.com>

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov