|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
|||
|
|||
|
How to make sum of columns
Hello
I'm using an Oracle Database which looks like this example Example (Customer is stored with the amount of different T-Shirts) Customer Tshirt(Blue) Tshirt(Black) Tshirt(white) Peter 1 5 3 John 0 2 6 Silvia 5 0 2 Now i want to add a column which is called total to count the total amount of t-shirts per customer. Does anybody can help me with this problem? Thank you in advanced!!! |
|
#2
|
||||
|
||||
|
why not move/ask the question to the "oracle database" thread
|
|
#3
|
|||
|
|||
|
select customer, t_shirt_blue + t_shirt_black + t_shirt_white
from table |
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > How to make sum of columns |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|