There are 2 tables linked by incident number.
When the main table is updated there is a notes column which can be updated and updated content of the notes is written to the 2nd table along with the primary key which here is INCIDENT NUMBER, second table can take mulitiple notes for a INCIDENT NUMBER.
I want to write a query which will have all the rows from the man table and NOTES column from the 2nd table but as there can be mutiple notes for a INCIDENT i want to concatenate all the notes for a INCIDENT
For Example MAIN TBALE
INCIDENT NUMBER
| Header 4 | Header 5 |
|---|
| INC00001234 | some data | somedata |
| INC00001235 | some data | some data |
2nd Table
INC_NUMBER
| Notes
|
|---|
| INC00001234 | note 1 |
| INC00001234 | note 2 |
When the o/p comes it should be like
| Header 1 | Header 2 | Header 3 | Notes
|
|---|
| INC00001234 | some data | some data | note 1 note 2 |
| INC00001235 | some data | some data | |
Please help.
Thanks
Rakesh