I have:
tbl_product:
------------
product_id
name
description
tbl_user:
------------
user_id
first_name
last_name
initials
Multiple users can own a single product and I represent that by creating a table:
xref_product_user:
product_id
user_id
that make up a composite primary key where each column is a foreign_key to their respective tables.
Since each product can have multiple users, I need to write a select statement that contains
product name, description, combined user initials (comma separated string).
So lets say I have a product chocolate that are owned by user mike johnson and dan williams. Well my results should be
NAME DESCRIPTION INTIALS
chocolate candy mj, dw
I can't seem to figure out how to write this select statement because of the initials part. Anyone have any ideas?