Help with SQL
Posted on 2013-12-19
I have a table with "tasks" associated with a "job". The tasks table has a foreign key that maps to the PK of the job table. The task table has a description column. I want a query that pulls back all task descriptions for job into a single concatenated text column, with the literal word "Task" and number that indicates the task order, based on the task date ASC, and the date. With CrLf between each. For example:
Task 1, 11/17/2013: The Task aaaaaa description.
Task 2, 11/23/2013: The Task bbbbbb description.
Task 3, 12/4/2013: The Task ccccc description.
Task 4, 12/13/2013: The Task ddddd description.