ok here is what im trying to do I have an sql query within a ssis package that I need to transform into html for storing into an sql table field varbinary(max)
here is the source table (simplified):
Customer ID
Question
Answer
1
how are you?
ok
1
like beans?
mm yes
2
how are you?
fine
2
like beans?
yuk
The output ideally needs to be:
CustomerID
html
1
see below
2
see below
where the html is the table of the questions / answers converted to varbinary(max) grouped by customerID. Thinking of using for xml or something like that but super stuck on this. Help much appreciated.
<table>
<tr>
<th>Question</th>
<th>Answer</th>
</tr>
<tr>
<td>How are you?</td>
<td>ok</td>
</tr>
<tr>
<td>like beans?</td>
<td>mm yes</td>
</tr>
</table>