I have following SQL (Using MS SQL)
UPDATE AR_Slots
SET Running = @Running,
StopSignal = @StopSignal,
WHERE (SlotId = @SlotId)
I want to set a field called RunListID to 0 if Running parameter (boolean) is true otherwise I don’t want to change the value at all.
What is the “correct” way of doing this?
Thanks,
Stefan
Try something like