If you have written the SQL to group data by month ,please refer to this :
;WITH CTE as
--Put the Sql statement that you group your data by month here
SELECT individual_name,[Month 1],[Month 2],[Month 3],
CASE WHEN [Month 1] IS NULL AND [Month 2] IS NULL AND [Month 3] IS NULL THEN 'NONE RECORDED'
WHEN [Month 1] = 'NEET' OR [Month 2] = 'NEET' OR [Month 3] = 'NEET' THEN 'NO' ELSE 'YES' END AS TARGET
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.