Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

intersection in SQL server 2000

This is a discussion on intersection in SQL server 2000 within the SQL Server forums, part of the Databases category; hi, What is the syntax for INTERSECTION Function in SQL server 2000? I tried the following syntax, but it is not working select <column_name> from <table_name1> intersect select <column_name> from ...

Go Back   Geeks Talk > Databases > SQL Server
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

SQL Server SQL Server is a Database Management System(DBMS) by Microsoft

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-19-2007
Junior Member
 
Join Date: May 2007
Location: India
Posts: 12
Thanks: 2
Thanked 2 Times in 2 Posts
vishnukumar is on a distinguished road
intersection in SQL server 2000

hi,

What is the syntax for INTERSECTION Function in SQL server 2000?

I tried the following syntax, but it is not working

select <column_name> from <table_name1>
intersect
select <column_name> from <table_name2>

intersect({[1],[2]},{[1]})

these two r showing syntax error

Please, share ur knowledge about these

Thanks in advance,
Vishnu
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-24-2007
Contributing Member
 
Join Date: Jun 2007
Location: Bangalore
Posts: 32
Thanks: 3
Thanked 33 Times in 6 Posts
vcyogi is on a distinguished road
Re: intersection in SQL server 2000

you can Use Inner Join for the operation of intersection
Reply With Quote
  #3 (permalink)  
Old 05-18-2009
Junior Member
 
Join Date: May 2009
Location: iran
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
setare is on a distinguished road
Re: intersection in SQL server 2000

What is the syntax for INTERSECTION Function in SQL server 2000?

I tried the following syntax, but it is not working

select <column_name> from <table_name1>
intersect
select <column_name> from <table_name2>
the error is:Incorrect syntax near the keyword 'intersect'.
Reply With Quote
  #4 (permalink)  
Old 07-23-2009
Contributing Member
 
Join Date: Jun 2009
Location: United States
Posts: 71
Thanks: 0
Thanked 5 Times in 4 Posts
CSOOR is on a distinguished road
Re: intersection in SQL server 2000

Quote:
Originally Posted by vishnukumar View Post
hi,

What is the syntax for INTERSECTION Function in SQL server 2000?

I tried the following syntax, but it is not working

select <column_name> from <table_name1>
intersect
select <column_name> from <table_name2>

intersect({[1],[2]},{[1]})

these two r showing syntax error

Please, share ur knowledge about these

Thanks in advance,
Vishnu

Try this query in SQL server 2005
Reply With Quote
Reply

  Geeks Talk > Databases > SQL Server

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
How to rename a column name in SQL Server 2000 vishnukumar SQL Server 3 09-06-2007 07:54 AM
Windows Server 2000 is working very slow Geek_Guest Windows 3 09-05-2007 10:15 AM
How to store a picture in sql server 2000? nmurugantech SQL Server 1 02-19-2007 10:26 AM
Guidelines for ISO 90001:2000 JobHelper Testing Issues 1 12-23-2006 08:19 AM
DNS server in Windows server 2000 FantaGuy Web Servers 2 12-13-2006 03:21 PM


All times are GMT -4. The time now is 04:38 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved