Online Documentation for SQL Manager for PostgreSQL
Create Query
Create Query in SQL Editor
-
Choose Tools |
New SQL Editor in the main program menu and write the query text in SQL Editor.
-
Press the
New SQL Editor button on the standard toolbar of the program and write the query text in SQL Editor.
- Use the shortcut <Shift+F12> and write the query text in SQL Editor.
Create Query in Query Builder
You can create a query in one of the following ways:
-
Choose Tools |
New Query Builder in the main program menu and create a query in the Visual Query Builder.
-
Press the
New Query Builder button on the standard toolbar and build a query on the diagram or in the editor area of the Visual Query Builder.
-
Open
SQL Editor or
Query Builder, drag any object from DB Explorer to SQL Editor or Visual Query Builder, select the type of the created query in the opened window.
Create simple query in Query Builder
- Open Visual Query Builder.
- Drag object from the DB Explorer tree or Objects group to the diagram area.
- Include the field in the query. Check the corresponding box located to the left from the field name in the list, or just double-click it. To include all fields of the table/view, check the box located to the left of the table/view caption. If you do not check any fields, the SQL statement is generated as SELECT * FROM <table/view_name>, i.e. all the fields are included in the query.
- Associate two objects by their fields. This operation is performed by dragging a field from one object list to another to set a link between these objects by the selected fields. It is indicated by a bidirectional arrow between the linked fields.
- Set the link properties using the linking arrow. The hint containing the association condition will popup after a short delay. To edit the link properties, double-click the linking arrow or right-click it and select the Property popup menu item. The Link properties dialog allows you to change the linking condition by choosing it from the drop-down list (=, >, <, >=, <=, <>).