Re: Index on two columns doesn't allow NULL in both - HELP!
- From: Hugo Kornelis <hugo@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 23 Dec 2005 00:13:25 +0100
On 22 Dec 2005 11:26:28 -0800, Doug wrote:
>I don't think Mr. Guzman's solution will work for the business problem
>you are trying to solve. It does allow the index, but you will never be
>able to retrieve any of the data where EITHER start OR end time is
>null.
Hi Doug,
Not from the indexed view, but you can still get this data from the
table itself.
The view suggested by Dan is intended merely to enforce the constraint,
not to replace the table in queries.
Best, Hugo
--
(Remove _NO_ and _SPAM_ to get my e-mail address)
.
- Follow-Ups:
- References:
- Index on two columns doesn't allow NULL in both - HELP!
- From: teddysnips
- Re: Index on two columns doesn't allow NULL in both - HELP!
- From: Dan Guzman
- Re: Index on two columns doesn't allow NULL in both - HELP!
- From: teddysnips
- Re: Index on two columns doesn't allow NULL in both - HELP!
- From: Doug
- Index on two columns doesn't allow NULL in both - HELP!
- Prev by Date: Re: Connection pooling
- Next by Date: Referential Integrity
- Previous by thread: Re: Index on two columns doesn't allow NULL in both - HELP!
- Next by thread: Re: Index on two columns doesn't allow NULL in both - HELP!
- Index(es):
Relevant Pages
|