Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Datenbanken (https://www.delphipraxis.net/15-datenbanken/)
-   -   Delphi SQL: Horizontale Summierung (https://www.delphipraxis.net/10347-sql-horizontale-summierung.html)

Jens Schumann 16. Okt 2003 15:10


SQL: Horizontale Summierung
 
Hallo,
ich habe ein SQL-Problem.
Ich habe in einer Tabelle die Spalte A,B,C in denen numerische Werte stehen.
Jetzt möchte ich nicht die Summe einer Spalte (vertikal), sondern die Summe der Spalten A+B+C (horizontal) berechen.
Weiß evt. jemand wie das geht ?

sakura 16. Okt 2003 15:11

Re: SQL: Horizontale Summierung
 
Mein Kollege meint:

SQL-Code:
select Feld1+Feld2+Feld3 As Summe1bis3
from tblManyIntegers
...:cat:...


Alle Zeitangaben in WEZ +1. Es ist jetzt 11:18 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz