I haven't done much SQL for a few years so I wonder if somebody could give me a few pointers on something. Say I have the following to tables:
Product
ProductID (PK)
Name
Message
MessageID (PK)
MessageType
ProductID (FK)
Product's may be related to 0 or more messages.
What I want is a select statement that will retrieve the product ID, name and then any messages all in one row. So for example:
Is that possible?Code:ID Name MessageType
ABC001 TestA MessageA
ABC002 TestB MessageB, MessageC
ABC003 TestC MessageA, MessageC