Solved

SQL -- Microsoft Reporting Services ?

Posted on 2013-05-10
2
482 Views
Last Modified: 2013-05-16
Below two tables need to be merged into
one Microsoft Reporting Services report.
----------------------------------------------------------
     select job, customer
     FROM job
     where job = 'G0878'
     
     SELECT job, work_center
     FROM job_operation
     where job = 'G0878'
----------------------------------------------------------
How can I change the below to put each work_center
into a separate Microsoft Reporting Services SQL statement column
instead of all work_centers in one column like it currently displays ?

I cannot run pre-scripts since this is
a Microsoft Reporting Services report.

  select
  j.customer,
  (
     SELECT work_center + ','
     FROM job_operation
     where
       --job = j.job
       job = 'G0878'
     FOR XML PATH('')
  ) as Work_Centers
 
  from job j
  where job = 'G0878'
s001.jpg
0
Comment
Question by:finance_teacher
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 27

Accepted Solution

by:
planocz earned 500 total points
ID: 39158941
You need to change to one dataset by using the two tables jioned together in a stored procedure. then group by work center.
0
 

Author Comment

by:finance_teacher
ID: 39170996
Do you have an example URL showing this ?
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

691 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