我知道我應該可以看到它,但是我在最後一行發現語法錯誤。有任何想法嗎?SQL語法!= error
select Problem_Investigation_ID,
dateadd(hour, datediff(hour, getutcdate(), getDate()) , dateadd(second, submit_date, '1970')) as submit_date,
dateadd(hour, datediff(hour, getutcdate(), getDate()) , dateadd(second, last_modified_date, '1970')) as last_modified_date,
Target_Resolution_Date, char_Status, description, assigned_group, Priority
from PBM_Problem_Investigation
where Assigned_Group in ('xxxxxxx','xxxxxxxxx','xxxxxxxx','xxxxxxxxxxx','xxxxxxxxx' )
and char_status != ('Completed', 'Closed', 'Resolved')
Doh,剛剛意識到它應該是不在 –