Hello,
I am currently doing a report in Reporting Services. I can pull the data up fine and have it layed out close to what the user is wanting with one exception. One of the fields I am having to pull about 18 different types of that field. For each one it brings up is a separate record. Which is fine because I just change the layout in Reporting Services and put the 18 items below the 1 main item. However the client would like all of the items on one row so that she can export it to excel and sort the columns. How would I do this? Below is my Query, The ten items I am referring to is the FSLog.IDNum and FSSetup.Discription; IDNum being the Unique identifier and Description which pulls from a separate table (FSSetup) is the string name of the item. These are basically File Status items. Thank you again for you help.
SELECT DISTINCT
ORDERS.GFNo, property.Address AS Expr1, property.City AS Expr2, property.State AS Expr3, FSLog.IDNum, FSSetup.Description, FSLog.CompletedDate,
FSLog.DueDate, property.User3 AS Expr4, property.User2 AS Expr5, ORDERS.PlaceOfClosing, ORDERS.Customer, ORDERS.OtherFileNum, AGENT.Name,
AGENT_1.Name AS Expr6, AGENT_2.Name AS Expr7
FROM ORDERS INNER JOIN
FSLog ON ORDERS.GFNo = FSLog.GFNo INNER JOIN
property ON ORDERS.GFNo = property.GFNo INNER JOIN
FSSetup ON FSLog.IDNum = FSSetup.IDNum INNER JOIN
AGENT ON ORDERS.Referral = AGENT.AgentNum INNER JOIN
AGENT AS AGENT_1 ON ORDERS.PlaceOfClosing = AGENT_1.AgentNum INNER JOIN
AGENT AS AGENT_2 ON ORDERS.Customer = AGENT_2.AgentNum
WHERE (ORDERS.RegID = 5) AND (FSLog.IDNum = 269 OR
FSLog.IDNum = 271 OR
FSLog.IDNum = 273 OR
FSLog.IDNum = 275 OR
FSLog.IDNum = 276 OR
FSLog.IDNum = 277 OR
FSLog.IDNum = 278 OR
FSLog.IDNum = 280 OR
FSLog.IDNum = 283 OR
FSLog.IDNum = 285 OR
FSLog.IDNum = 286 OR
FSLog.IDNum = 289 OR
FSLog.IDNum = 292 OR
FSLog.IDNum = 295 OR
FSLog.IDNum = 296 OR
FSLog.IDNum = 297 OR
FSLog.IDNum = 298 OR
FSLog.IDNum = 299 OR
FSLog.IDNum = 300)
FSSetup contains
IDNUM Discription
1 Order Item
2 Receieve Item
3 Send Item
Where
FSLog contains
IDNUM Completed Date Due Date
1 1/1/2007 1/15/2007
2 2/15/2007 2/10/2007
Etc... Basically FSlog is the log for the order and FSSetup stores the descriptions of the diffrent Order Status items. With IDNum being the Unique Identifer and get each description into its own Column please