Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 20764

Multiple instances of same table

$
0
0

Hi,

As a newbie in the SQL Server Reporting environment, I have the following question.

I have three tables. A table with departments, a table with employees and a table with people working for a department.

Employees have exactly one "master department" record, which is indicated in an attribute of the record (Y) at any given date

An employee may have 0-n records for other departments (the same attribute is N) as they may work part time with that department.

I want to create a report where I have the following data:

Column 1: Department (group)

Column 2: Employee (group), naming every employee which has a "master department" record for that department

Column 3: Department, listing every department that person is working for.

The problem is that I need to connect two instances of the same (Employee working for Department) table

Is there any way to do that?



Viewing all articles
Browse latest Browse all 20764

Trending Articles