Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

SSIS Division Expand / Collapse
Author
Message
Posted Sunday, January 06, 2013 2:02 PM


Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, April 16, 2014 4:51 AM
Points: 6, Visits: 182
How do I evenly divide $10752.00 into 7 In SSIS ?
(even division of a decimal)

For example:$102.10 / 2

Result:-
51.05
51.05




NOBODY REMAINS VIRGIN LIFE FU**S EVERY ONE..
Post #1403352
Posted Sunday, January 06, 2013 2:11 PM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Today @ 11:32 AM
Points: 1,636, Visits: 16,534
karna5999 (1/6/2013)
How do I evenly divide $10752.00 into 7 In SSIS ?
(even division of a decimal)

For example:$102.10 / 2

Result:-
51.05
51.05




ok..bit confused to the reason behind your question

eg....100/2....does this output 50 rows all as "2" ?

What are you trying to achieve?



__________________________________________________________________
you can lead a user to data....but you cannot make them think !
__________________________________________________________________
Post #1403353
Posted Monday, January 07, 2013 1:42 AM


Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, April 16, 2014 4:51 AM
Points: 6, Visits: 182
Thanks for your replay i need to divide $10752.00 for 7 rows

Ex:-

There is 2 different source tables:-

Table#1

custno Guid policytype amount
1 123 901 $1000
2 123 901 $2310
3 345 902 $9123
4 345 902 $2341 etc..

Table#2

Guid policytype Bonus
123 901 $1211
345 902 $1217 etc...


need to divide table#2 bonus $1211 for all 901 policy type holders in table#1



Result should be like this:

custno Guid policytype amount
1 123 901 $1605.5
2 123 901 $2915.5
3 345 902 $9731.5
4 345 902 $2949.5


NOBODY REMAINS VIRGIN LIFE FU**S EVERY ONE..
Post #1403470
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse