Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2008
»
SQL Server Newbies
»
SSIS Division
SSIS Division
Rate Topic
Display Mode
Topic Options
Author
Message
karna5999
karna5999
Posted Sunday, January 06, 2013 2:02 PM
Forum Newbie
Group: General Forum Members
Last Login: Monday, May 13, 2013 4:20 AM
Points: 4,
Visits: 66
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
J Livingston SQL
J Livingston SQL
Posted Sunday, January 06, 2013 2:11 PM
UDP Broadcaster
Group: General Forum Members
Last Login: Today @ 4:10 PM
Points: 1,472,
Visits: 14,602
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
karna5999
karna5999
Posted Monday, January 07, 2013 1:42 AM
Forum Newbie
Group: General Forum Members
Last Login: Monday, May 13, 2013 4:20 AM
Points: 4,
Visits: 66
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 »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.