Re: constraints on views
From: AnthonyThomas (Anthony.Thomas_at_CommerceBank.com)
Date: 12/30/04
- Next message: AnthonyThomas: "Re: "[Microsoft][ODBC SQL Server Driver][Shared Memory]Invalid connection." message"
- Previous message: AnthonyThomas: "Re: SQL7 servers integration in Active Direcory 2003"
- In reply to: Agoston Bejo: "constraints on views"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 30 Dec 2004 07:57:08 -0600
You could also consider a UNIQUE CONSTRAINT on the combination of a, b, and
c. What is the rule when c <> 1?
Sincerely,
Anthony Thomas
-- "Agoston Bejo" <gusz1@freemail.hu> wrote in message news:evpzFRF2EHA.3408@tk2msftngp13.phx.gbl... Hi. At first let me present the problem: T(a int, b int, c bit) I would like to see to it that (a,b) is unique where c = 1. The easiest way to accomplish this would be creating a view like this: create view V as select a,b from T where c = 1 And then putting a unique constraint on (a,b) in V. I am open to other solutions as well, of course. Thx, Agoston
- Next message: AnthonyThomas: "Re: "[Microsoft][ODBC SQL Server Driver][Shared Memory]Invalid connection." message"
- Previous message: AnthonyThomas: "Re: SQL7 servers integration in Active Direcory 2003"
- In reply to: Agoston Bejo: "constraints on views"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|