I created the view View_DefectDaysOutstanding3. when I select to see the data, it gives the data, but why in the select statement all the fields are underlined in red as err
Have you refreshed your Intellisense cache?
Keyboard shortcut: Ctrl + Shift + R
Or, using the menu: Edit -> IntelliSense -> Refresh Local Cache
Edit
IntelliSense
Refresh Local Cache
Go to Edit > IntelliSense > select "Refresh Local Cache".
You need to refresh your cache after you create new tables/add columns/ new views etc