The INTERSECT keyword is not available in MySQL. You will have to compare
the columns in your join syntax (or get creative?).

-----Original Message-----
From: L a n a
To: [EMAIL PROTECTED]
Sent: 7/18/04 8:20 PM
Subject: how to intersect resulting sets form sql query

Hello,
I'm trying to find a resulting set for searching two keywords, like:

Select * from table where filed_a like '%keyword1%' OR field_b like 
'%keyword1%' INTERSECT (Select * from table where filed_a like
'%keyword2%' 
OR field_b like '%keyword2%').
This statement gives an error in syntax.
What is right way to write this kind of logic in query?

Thank you,

_________________________________________________________________
MSN Premium: Up to 11 personalized e-mail addresses and 2 months FREE*

http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU
=http://hotmail.com/enca&HL=Market_MSNIS_Taglines


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:
http://lists.mysql.com/[EMAIL PROTECTED]

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to