Subject | Re: intersect operation |
---|---|
Author | Svein Erling Tysvær |
Post date | 2004-07-19T07:58:45Z |
--- In firebird-support@yahoogroups.com, "vbj34" <vbj34@y...> wrote:
records that exists in two separate tables? If so, it is simply a
matter of doing
SELECT <something>
FROM <table1>
JOIN <table2> ON <table2.field1> = <table1.field1>
or (depending on what you want)
SELECT <something>
FROM <table1>
WHERE EXISTS(SELECT * FROM <table2> WHERE <table2.field1> = <table1.
field1>)
If this is not what you are asking, please rephrase your question so
that it is easier for us to understand.
HTH,
Set
> Hi, is it possible to perform set intersect operation with FirebirdIs this a difficult way to ask whether it is possible to return only
> SQL? Thanks.
records that exists in two separate tables? If so, it is simply a
matter of doing
SELECT <something>
FROM <table1>
JOIN <table2> ON <table2.field1> = <table1.field1>
or (depending on what you want)
SELECT <something>
FROM <table1>
WHERE EXISTS(SELECT * FROM <table2> WHERE <table2.field1> = <table1.
field1>)
If this is not what you are asking, please rephrase your question so
that it is easier for us to understand.
HTH,
Set