Coloana calculata intr-un "select"

Dragos Popescu <[email protected]>
Newsgroups gmane.org.user-groups.rlug.offtopic
Message-ID <CAC0MZTZdLfMdOarDrMDp18DFhnJQSRL1RkVLUjBL3y9BMJXfMA@mail.gmail.com>
Salutare.
Să pp că am un tabel în sqlite, cu coloanele c1, c2, c3.

La un moment dat vreau să fac un select care să-mi dea suma valorilor din
coloanele tabelului.
"select sum(c1)+sum(c2)+sum(c3) as Total from tabel" e ok, returnează ce-mi
trebuie.

Ei, aşa avea nevoie de încă o coloană, să-i zicem "Preţ", care sa fie
"Total"*140.15, de ex.
Cum se face asta într-un singur select, dacă se poate face?

-- 
Dragos P
126296 luser
"La revedere. Drum bun"
_______________________________________________
Offtopic mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/offtopic
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.