You create a new query in the Query list as follows:
The following SQL constructs are available for linking queries in PowerDesigner (depending on your DBMS):
Construct |
Result |
Example |
---|---|---|
Union [default] |
Displays all the data retrieved by both the queries, except where results are repeated. |
SELECT 1: ABC SELECT 2: BCD Result: ABCD |
Union All |
Displays all the data retrieved by both the queries, including repeated results. |
SELECT 1: ABC SELECT 2: BCD Result: ABCBCD |
Intersect |
Displays only the data retrieved by both the queries. |
SELECT 1: ABC SELECT 2: BCD Result: BC |
Minus |
Displays only the data retrieved by one or other of the queries, but not by both. |
SELECT 1: ABC SELECT 2: BCD Result: AD |