Skip to Content
author's profile photo Former Member
Former Member

Date Wise Production Report

Dear All,

I want following column wise Production Report (From Production Order)

WARE HOUSE UOM COMPLETED Date(1,2,3,4,5,6,......31 ) Completed Qty. total qty

Basically i want Pivot (dynamic) by date

SELECT T0.[Warehouse], T0.[Uom], T0.[DueDate], T0.[CmpltQty] FROM OWOR T0 WHERE T0.[Status] ='L' GROUP BY T0.[Warehouse], T0.[Uom], T0.[DueDate], T0.[CmpltQty]

thanks

Ashish Gupte

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 15, 2011 at 03:01 PM

    Dear Ashish Gupte,

    If you need Pivot (dynamic) by date, XL Reporter will be the right tool to use.

    Thanks,

    Gordon

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 17, 2011 at 04:28 PM

    Hi Ashish Gupte,

    You can get it done in SQL itself by using Stuff and For XML path

    Have a look into this link:

    [Dynamic Pivot|http://stackoverflow.com/questions/1439403/sql-server-dynamic-pivot-table-sql-injection]

    Regards,

    Bala

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.