intersect function
From: burke (anonymous_at_discussions.microsoft.com)
Date: 02/19/04
- Next message: Ray Higdon: "Re: intersect function"
- Previous message: Vishal Parkar: "Re: Script to copy table between databases"
- Next in thread: Ray Higdon: "Re: intersect function"
- Reply: Ray Higdon: "Re: intersect function"
- Reply: Vishal Parkar: "Re: intersect function"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 19 Feb 2004 15:15:31 -0800
i just came across the "intersect" function and can't get
it to work. i'm familiar with "union".
i've copied the example from books online and i get the
following error:
[Microsoft][ODBC SQL Server Driver]Syntax error or access
violation
i've tried to substitute "union" with "intersect" in a
union statement that works and get the following error:
Server: Msg 156, Level 15, State 1, Line 5
Incorrect syntax near the keyword 'intersect'.
heres the sample statement:
select id, status, member_type
from imis.dbo.name n
where member_record = 1
intersect
select id, status, member_type
from imis_2003_q4.dbo.name n
where member_record = 1
we're on sql server 2000
thanks for any help.
- Next message: Ray Higdon: "Re: intersect function"
- Previous message: Vishal Parkar: "Re: Script to copy table between databases"
- Next in thread: Ray Higdon: "Re: intersect function"
- Reply: Ray Higdon: "Re: intersect function"
- Reply: Vishal Parkar: "Re: intersect function"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|