Query to create a unique index Create a unique index: Create Unique Index [Id] on [G1] ([DBId], [GLPeriodId], [EntryNumber], [LineNumber])