Re: [SQL] can this be done with a check expression?

2012-08-03 Thread Wayne Cuddy
Thanks for the input. I don't insert into this table that often so I'll just prevent overlaps at the application level since I'm running 9.0.X and not really in a position to upgrade right now. Thanks again, Wayne On Fri, Aug 03, 2012 at 11:50:13AM -0400, Jonathan S. Katz wrote: > On Aug 2, 201

Re: [SQL] can this be done with a check expression?

2012-08-03 Thread Jonathan S. Katz
On Aug 2, 2012, at 7:10 PM, Wayne Cuddy wrote: > I have a table with 3 columns: > > name text > start_id integer > end_id integer > > start_id and end_id are ranges which must not overlap but can have gaps > between them. Is it possible to formulate a table check constraint that > can verify tha