You can create a Primary Key Constraint by creating a composite index with the two time values together. For example:
CONSTRAINT PK_tTimeFrom_tTimeTo PRIMARY KEY NONCLUSTERED ([tTimeFrom], [tTimeTo])
This example is for MS SQL.
2
solved i want to write a SQL according to following instructions