Concatenation of detail-records in a Master-Detail relationship

J

John Smith

Hi,

I have two tables (master-detail):

Table 1: Department
Dep_Id: Integer
Name: Text

Table 2: Employee
Emp_Id: Integer
Dep_Id: Integer
Name: Text

I want to make a query with two columns.
Column_1 : The Department
Column_2 : A combination (concatenation?) of all the employee's from the
department

For instance, this could be the result:

Sales : John, Paul, George, Ringo
Prod : Bill, Mick


Can anyone help me make this query?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top