Giò
2005-09-12 15:17:31 UTC
Hi,
I have a Table like this:
CREATE TABLE MYTABLE( ID_PK INTEGER NOT NULL, DATE_INI DATE, DATE_END DATE)
I need to polulate my table with data but each record cannot contain
overlapped date.
Example:
1, 10-10-2005, 10-12-2005
2, 10-13-2005, 10-15-2005. Correct
1, 10-10-2005, 10-12-2005
2, 10-11-2005, 10-15-2005. Incorrect.
With a single client this is simple, but if I have two clients in wich way
can I guarantee this rule without lock all table?
Thanks
I have a Table like this:
CREATE TABLE MYTABLE( ID_PK INTEGER NOT NULL, DATE_INI DATE, DATE_END DATE)
I need to polulate my table with data but each record cannot contain
overlapped date.
Example:
1, 10-10-2005, 10-12-2005
2, 10-13-2005, 10-15-2005. Correct
1, 10-10-2005, 10-12-2005
2, 10-11-2005, 10-15-2005. Incorrect.
With a single client this is simple, but if I have two clients in wich way
can I guarantee this rule without lock all table?
Thanks