I have a simple table
CREATE TABLE Records
(
Id INT,
Client INT,
IsActive BIT,
HasSession BIT
)
I tried using OR statement but it only considered the 2nd argument.
CREATE NONCLUSTERED INDEX F
ON ClientsDB.Records (Client)
WHERE IsActive = 1;
CREATE NONCLUSTERED INDEX F
ON ClientsDB.Records (Client)
WHERE HasSession = 1;
I tried doing some research and seems you cannot use OR statement on these
As per trigger suggestion referred, one of my requirements is to avoid them at all so i cannot use anything related to triggers.
CHECK CONSTRAINT
?