![]() | |
![]() |
| | Thread Tools | Display Modes |
#21
| |||
| |||
|
#22
| |||
| |||
|
|
as Charles pointed, i used the decode function as an if statement and this solved my problem just like that: sum(decode(cust_1.region, 'East', decode(prod_1.category, 'Base', 0.095,'Common', 0.115, 'Special',0.14, 0)*salpmt_1.amount, 0)) as "East", ... that was it. Thanks to all of you, you were all helpful |
#23
| |||
| |||
|
|
as Charles pointed, i used the decode function as an if statement and this solved my problem just like that: sum(decode(cust_1.region, 'East', decode(prod_1.category, 'Base', 0.095,'Common', 0.115, 'Special',0.14, 0)*salpmt_1.amount, 0)) as "East", ... that was it. Thanks to all of you, you were all helpful |
#24
| |||
| |||
|
|
as Charles pointed, i used the decode function as an if statement and this solved my problem just like that: sum(decode(cust_1.region, 'East', decode(prod_1.category, 'Base', 0.095,'Common', 0.115, 'Special',0.14, 0)*salpmt_1.amount, 0)) as "East", ... that was it. Thanks to all of you, you were all helpful |
#25
| |||
| |||
|
|
as Charles pointed, i used the decode function as an if statement and this solved my problem just like that: sum(decode(cust_1.region, 'East', decode(prod_1.category, 'Base', 0.095,'Common', 0.115, 'Special',0.14, 0)*salpmt_1.amount, 0)) as "East", ... that was it. Thanks to all of you, you were all helpful |
![]() |
| Thread Tools | |
| Display Modes | |
| |