Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Is this possible???

Author  Topic 

van73
Starting Member

7 Posts

Posted - 2008-01-04 : 04:00:55
Hi all,
I have a table like this whose deatils which I need to use are
Date OpeningStock Delivered Recvd RemQty


I need to display monthly Billing report like this for the month/dates selected (that forms the parameters - from and To date)

week Week1 Week2 Week3 Week4
day Mo Te We Th Fr Sa Su
dateAug1............
This row has Opening stock for that day....
This row the Qty Delivered
This row the Quantity received
Daily Balance Stock
Weekly Highest Inventory --- this should show the max(balance stock) for that week

All details are available in the table. Its only the format that I should put into. I tried with PIVOT but was not succesful.
Basically columns in the table become rows in the format except for the date column.



Any ideas???


georgev
Posting Yak Master

122 Posts

Posted - 2008-01-04 : 06:03:04
Do it in the presentation layer ;)

You could knock that up in Crystal Reports in 10 minutes I reckon (that is, if you're familiar with that particular application).

Alternatively... Can you port the code for the PIVOT that you tried?


George
<3Engaged!
Go to Top of Page
   

- Advertisement -