![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is it possible to create a unique constraint on two tables? In mssql2000? |
#3
| |||
| |||
|
|
Is it possible to create a unique constraint on two tables? In mssql2000? |
#4
| |||
| |||
|
|
You mean spaning two tables? No, not as such. You could try creating an indexed view, but that will hurt performance. Anyway, perhaps supertype is in order (depending on the enitites)? MC "Igor" <jerosimic (AT) gmail (DOT) com> wrote in message news:1178387342.966780.319330 (AT) q75g2000hsh (DOT) googlegroups.com... Is it possible to create a unique constraint on two tables? In mssql2000? |
#5
| |||
| |||
|
|
Is it possible to create a unique constraint on two tables? In mssql2000? |
#6
| |||
| |||
|
|
I believe UNION is one of the disallowed constructs of an indexed view. However, I agree that the need to do this is probably a schema design issue. -- Hope this helps. Dan Guzman SQL Server MVP "MC" <marko.NOSPAMculo (AT) gmail (DOT) com> wrote in message news:f1ijhg$c13$1 (AT) ss408 (DOT) t-com.hr... You mean spaning two tables? No, not as such. You could try creating an indexed view, but that will hurt performance. Anyway, perhaps supertype is in order (depending on the enitites)? MC "Igor" <jerosimic (AT) gmail (DOT) com> wrote in message news:1178387342.966780.319330 (AT) q75g2000hsh (DOT) googlegroups.com... Is it possible to create a unique constraint on two tables? In mssql2000? |
#7
| |||
| |||
|
#8
| |||
| |||
|
|
I redesigned my website so i dont need it now, thank you all. I had two tables one for opened requests and another for closed requests, they have different columns. When request is solved it is moved to requests_finished table and deleted from requests_opened... I thought i would explain what i wanted but english is not my primary language and explaining it is so hard and it's not important anymore so i give up ![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |