SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SSIS Division


SSIS Division

Author
Message
SSC-Learner
SSC-Learner
SSC Rookie
SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)

Group: General Forum Members
Points: 42 Visits: 219
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..Exclamation
J Livingston SQL
J Livingston SQL
SSChampion
SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)

Group: General Forum Members
Points: 12069 Visits: 37527
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
and remember....every day is a school day

SSC-Learner
SSC-Learner
SSC Rookie
SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)

Group: General Forum Members
Points: 42 Visits: 219
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..Exclamation
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search