So i need to edit a view to add a field for reporting purposes, but when I pull up the view the first section is broken, so no matter what I add it throws an error anytime I try to save changes, but if I select from the view it all works fine.
SQL
SELECTITEM_NO,SER_NO,LOC_ID,SEQ_NO,editCount=count(*)FROMUSER_ATF_BOUND_BOOK_LOG<----brokenWHEREREC_TYP='O'GROUPBYITEM_NO,SER_NO,LOC_ID,SEQ_NO),RecordGUIDAuditCountAS<---- correct part(SELECTITEM_NO,recordGUID,editCount=count(*)FROMUSER_ATF_BOUND_BOOK_LOGWHEREREC_TYP='O'GROUPBYITEM_NO,recordGUID),
I've never seen people creating table aliases or whatever the term for this is like this before, so I'm not sure how it should be formatted to be correct. These are just essentially temp tables that are called later in the view, but I don't believe temp tables...
<<