Subject | How can I do INTERSECTS clause on IB/FB |
---|---|
Author | Hayashi@apex-jp.com |
Post date | 2003-06-16T02:11:02Z |
Hi
I have a question about INTERSECTS clause.
Using Oracle:
SELECT * FROM ATBL
INTERSECTS
SELECT * FROM BTBL
Using IB/FB:
SELECT * FROM ATBL
WHERE EXISTS(
SELECT * FROM BTBL
WHERE ATBL.A=BTBL.A
AND ATBL.B=BTBL.B
.
.
.
);
It is bery long. What is the better way?
best regards
Tsutomu Hayashi in Japan
Mail : hayashi@...
Web : http://www.apex-jp.com/ (Japanese Only)
http://dmj.psnet.ne.jp/ (Delphi Magazine)
I have a question about INTERSECTS clause.
Using Oracle:
SELECT * FROM ATBL
INTERSECTS
SELECT * FROM BTBL
Using IB/FB:
SELECT * FROM ATBL
WHERE EXISTS(
SELECT * FROM BTBL
WHERE ATBL.A=BTBL.A
AND ATBL.B=BTBL.B
.
.
.
);
It is bery long. What is the better way?
best regards
Tsutomu Hayashi in Japan
Mail : hayashi@...
Web : http://www.apex-jp.com/ (Japanese Only)
http://dmj.psnet.ne.jp/ (Delphi Magazine)