Topic: Index and ORDER BY DESC
There is a table TableName with primary key TableNameID
There is a SQL query on decrease:
ORDER BY TableNameID DESC
Whether a question it is necessary to create primary key TableNameID on decrease?
CONSTRAINT [PK_TableName] PRIMARY KEY CLUSTERED ( [TableNameID] DESC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY]
Or to create an additional index on decrease ?