You can edit the code shown in the SQL Query tab in any of the following ways:
Edit the code directly in the tab
Click the Edit with SQL Editor tool to open the code in PowerDesigner's built-in SQL Editor. The SQL Editor provides a more complete query definition environment than the SQL query tab, including access to standard SQL constructs and syntax tools for functions and operators (see Defining Queries with the SQL Editor).
Click the Edit with tool (CTRL+E) to open the code in your favorite editor
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.