Viewing 6 posts - 1 through 7 (of 7 total)
While the 'does not exist constraint solution' can be accomplished by producing a UDF for the sub query in a constraint.
The recursive query's infinite loop can be solved by...
April 27, 2015 at 1:27 pm
You are right, it does need another constraint.
Update and Delete Action only available to null valued voids.
April 27, 2015 at 11:56 am
The Existence check would only return False after the update. At the time of update the check would return true. As [1] will not have been saved the table yet.
April 27, 2015 at 11:40 am
I need to put
NOT EXISTS(SELECT * FROM [TICKETS] WHERE [VOID] = [TICKET])
Into a constraint. So that the chained tickets do not form a loop.
April 27, 2015 at 9:45 am
The tickets are unique but they may not be sequential or forever increasing. So a constraint with a sub-query is necessary, but I have no idea how to do that.
April 27, 2015 at 9:15 am
[Ticket] [Void]
[0] Null
[1] [0]
[2] [1]
Ticket [0] is replaced by Ticket [1], Ticket [1] is...
April 27, 2015 at 8:52 am
Viewing 6 posts - 1 through 7 (of 7 total)