Subject | Re: [firebird-support] Re: intersect operation |
---|---|
Author | Jacqui Caren |
Post date | 2004-07-22T11:40:49Z |
Nigel Weeks wrote:
FWICS the where clause should always fail - giving an empty result set.
One (messy) solution would be (assuming Student is a lone IA)
select A.Student
from MajorsIN A,
MajorsIN B
where
A.Student = B.Student
and A.Major = 'math'
and B.Major = 'CS'
or use more explicit joins.
Jacqui
> Students majoring in math AND CS:I am confused - is this a Firebird specific SQL trick that I missed?
> select Student
> from MajorsIN
> where Major = 'math' AND Major = 'CS'
FWICS the where clause should always fail - giving an empty result set.
One (messy) solution would be (assuming Student is a lone IA)
select A.Student
from MajorsIN A,
MajorsIN B
where
A.Student = B.Student
and A.Major = 'math'
and B.Major = 'CS'
or use more explicit joins.
Jacqui