NoCoolHandle
Programmer
did it mention a line number?
was it 6 or 9?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
DECLARE @str VARCHAR(100)
(SELECT @str = COALESCE(@str + '', '') + CONVERT(VARCHAR, [WINDOW_START]) FROM ANC_IND_HIST)
DECLARE @dates VARCHAR(50)
select TOP 100
[INDIVIDUALS 2].IND_ID,
[INDIVIDUALS 2].Ind_Full_Name,
(select anc_ind_hist.window_start) AS plan_window_start,
(SELECT @str = COALESCE(@str , '') + CONVERT(VARCHAR, [WINDOW_START]) FROM ANC_IND_HIST)
/*(SELECT @str = COALESCE(@str + '', '') + [WINDOW_START]) as windows_start */
FROM [individuals 2]
LEFT JOIN ANC_IND ON ([individuals 2].IND_ID = ANC_IND.IND_ID)
LEFT JOIN ANC_IND_PLAN ON (ANC_IND.IND_ID = ANC_IND_PLAN.IND_ID)
LEFT JOIN ANC_IND_HIST ON (ANC_IND.IND_ID = ANC_IND_HIST.IND_ID)
Msg 102, Level 15, State 1, Line 9
Incorrect syntax near '='.
(select anc_ind_hist.window_start) AS plan_window_start,
anc_ind_hist.window_start plan_window_start,