Solved

Pivot data from sql 2000

Posted on 2015-02-16
3
129 Views
Last Modified: 2015-02-16
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
0
Comment
Question by:spoye
3 Comments
 
LVL 18

Accepted Solution

by:
vasto earned 500 total points
ID: 40612632
Use CrossTab. This is the analog of pivot in Crystal reports and I believe Crystal 9 supports it.
0
 
LVL 16

Expert Comment

by:DcpKing
ID: 40612695
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
0
 

Author Comment

by:spoye
ID: 40612725
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.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Backing up an SQL Transaction Log 11 41
MS SQL - Rotating Values in SQL 9 53
SQL Error in WHERE Clause 5 41
Extract string portion 2 14
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
I have a large data set and a SSIS package. How can I load this file in multi threading?
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now