Link to home
Start Free TrialLog in
Avatar of steven
stevenFlag for United States of America

asked on

Pivot data from sql 2000

We are trying to create a report that will pivot the output of a query.   The query have multipule fields, but they want it broken out by month/year.   We also use crystal reports 9.  The inv_datem is the month number while the datey is the year.  The goes back one year...Thanks

select       inv_Datem,
            inv_Datey,
            item,
            rollup,
               matlcode,
                cert_desc,
                size,
                type,
            whse,
                inv_amt,
            qty_openOrders,
            cur_sales,
               avg_pricelb            
from   rollupsales
ASKER CERTIFIED SOLUTION
Avatar of vasto
vasto
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You might also consider upgrading to a newer version of SQL Server with the Pivot function in T-SQL. You need not even pay - get a copy of SQL Server Express and use it as a report server ...

Mike
Avatar of steven

ASKER

Thank you we are in the process of upgrading, now...but its a entire ERP system update, so we are looking at 6 months.  At least the managers are shooting for that.