Chapter 3 Building Physical Diagrams
You can edit the code shown in the SQL Query tab in any of the following ways:
Any edits you make in the SQL Query tab will propagate to the property sheets of the associated individual queries (see Opening the property sheet of a query).
The individual queries associated with the view are available from the Query list at the bottom of the SQL Query tab. You can create and delete queries using the tools at the bottom of the tab.
To create a new query in the Query list:
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 |
To delete a query from the Query list:
Copyright (C) 2007. Sybase Inc. All rights reserved. |
![]() |