Hi,
I am working with CR XI R2 and SQL Server 2005 stored procedure. I have a requirement wherein, I need to split a row into multiple rows if values of a field is greater than e.g. 20 million. So 66,000,000 should split into 4 rows of 20, 20, 20 and 6 millions.
/*** For Example ***/
SQL Stored Proc Output:
Account # Account Type Bought/ Sold Symbol/ CUSIP Quantity Price/Basis Type Price/Basis Amt Trade Date Setllement Date
QJZ001043 0 - COD Bought 912810QY7 3000000.00 Dollar Price 91.429515419 01/30/2013 01/31/2013
QJZ001043 0 - COD Sold 912828TY6 66000000.00 Dollar Price 96.580216872 01/30/2013 01/31/2013
QJZ001043 0 - COD Bought 912828UF5 1000000.00 Dollar Price 98.306690141 01/30/2013 01/31/2013
In Crystal Reports, it should look like:
Account # Account Type Bought/ Sold Symbol/ CUSIP Quantity Price/Basis Type Price/Basis Amt Trade Date Setllement Date
QJZ001043 0 - COD Bought 912810QY7 3000000.00 Dollar Price 91.429515419 01/30/2013 01/31/2013
QJZ001043 0 - COD Sold 912828TY6 20000000.00 Dollar Price 96.580216872 01/30/2013 01/31/2013
QJZ001043 0 - COD Sold 912828TY6 20000000.00 Dollar Price 96.580216872 01/30/2013 01/31/2013
QJZ001043 0 - COD Sold 912828TY6 20000000.00 Dollar Price 96.580216872 01/30/2013 01/31/2013
QJZ001043 0 - COD Sold 912828TY6 6000000.00 Dollar Price 96.580216872 01/30/2013 01/31/2013
QJZ001043 0 - COD Bought 912828UF5 1000000.00 Dollar Price 98.306690141 01/30/2013 01/31/2013
Any suggestions and/or solutions much appreciated.
Thanks,
I am working with CR XI R2 and SQL Server 2005 stored procedure. I have a requirement wherein, I need to split a row into multiple rows if values of a field is greater than e.g. 20 million. So 66,000,000 should split into 4 rows of 20, 20, 20 and 6 millions.
/*** For Example ***/
SQL Stored Proc Output:
Account # Account Type Bought/ Sold Symbol/ CUSIP Quantity Price/Basis Type Price/Basis Amt Trade Date Setllement Date
QJZ001043 0 - COD Bought 912810QY7 3000000.00 Dollar Price 91.429515419 01/30/2013 01/31/2013
QJZ001043 0 - COD Sold 912828TY6 66000000.00 Dollar Price 96.580216872 01/30/2013 01/31/2013
QJZ001043 0 - COD Bought 912828UF5 1000000.00 Dollar Price 98.306690141 01/30/2013 01/31/2013
In Crystal Reports, it should look like:
Account # Account Type Bought/ Sold Symbol/ CUSIP Quantity Price/Basis Type Price/Basis Amt Trade Date Setllement Date
QJZ001043 0 - COD Bought 912810QY7 3000000.00 Dollar Price 91.429515419 01/30/2013 01/31/2013
QJZ001043 0 - COD Sold 912828TY6 20000000.00 Dollar Price 96.580216872 01/30/2013 01/31/2013
QJZ001043 0 - COD Sold 912828TY6 20000000.00 Dollar Price 96.580216872 01/30/2013 01/31/2013
QJZ001043 0 - COD Sold 912828TY6 20000000.00 Dollar Price 96.580216872 01/30/2013 01/31/2013
QJZ001043 0 - COD Sold 912828TY6 6000000.00 Dollar Price 96.580216872 01/30/2013 01/31/2013
QJZ001043 0 - COD Bought 912828UF5 1000000.00 Dollar Price 98.306690141 01/30/2013 01/31/2013
Any suggestions and/or solutions much appreciated.
Thanks,