I am trying to speed up the query, and I think I am confused about the indexes. How and which index I would add to this table. The identifier is unique, will it be the main index?
CREATE TABLE #OSP ( [Id] UniqueIdentifier, [YearMonth] int, [Expenditure] decimal (7,2), [Permit] decimal (7,2) );
source share