Article ID: 155181
Article Last Modified on 10/3/2003
create table X (xCol1 int not null,
xCol2 int not null)
go
create table Y (yCol1 int not null)
go
create view vX
as
select xCol1, xCol2
from X
where xCol1 in
(select yCol1
from Y
where yCol1 = xCol1)
with check option
go
insert vX values (1,1)
Additional query words: AV
Keywords: kbbug kbprogramming KB155181