SSMS mi restituisce errore nel select e nel from..
Qualcuno riesce a dirmi cosa sbaglio?

codice:
UPDATE [table1]
	   
   SET [Campo1] = CASE WHEN 
                  Select([AAAAMM] FROM [table1] inner join [table2] on table1.Campo2 = table2.campo1 GO) < 201001 THEN 'Old' ELSE
					
                  CASE WHEN
                  Select([AAAAMM] FROM [table1] inner join [table2] on table1.Campo2 = table2.campo1 GO) IS NULL OR
                  Select([AAAAMM] FROM [table1] inner join [table2] on table1.Campo2 = table2.campo1 GO) > 201004 THEN 'Next' ELSE
					
                  Select([AAAAMM] FROM [table1] inner join [table2] on table1.Campo2 = table2.campo1 GO) END END
					
  WHERE DtAggYearWK = 201026
  
GO