Download presentation
Presentation is loading. Please wait.
Published byIrma McCoy Modified over 6 years ago
1
SQL MODELER - OPEN There are Three Ways to open the SQL Modeler
Select a Table Right Click for Menu Click on Model Table for Query Click on the Toolbar Click on Database => on the Main Menu SQL MODELER - OPEN
2
SQL MODELER - OPEN There are Two Modes for accessing SQL Modeler
in context : Right Clicking on Table and Selecting Model Table from Query out of context: Either click on the toolbar or Click database and Click on What’s the difference? in context will bring up the diagram for the selected table and related tables. A message box will display asking to what level it should drill down. out of context will require the table/tables to be selected from a list. SQL MODELER - OPEN
3
SQL MODELER – GENERATING A QUERY
Increase/Decrease Magnification Right click any where on panel Select Arrange Tables Or hold down the left button and drag and drop Additional tables can be added by: Double clicking on table name in the list. Joins can be created/deleted This will not effect the referential integrity of the database
4
SQL MODELER – GENERATING A QUERY
If a foreign key does not exist Tables will appear with out a join To create a join Highlight join column Hold down left button Drag to column to join to Join from checks table check_op_id_voided To batch_checks op_id
5
SQL MODELER – GENERATING A QUERY
The join can be viewed in more detail by Double left clicking on the join
6
SQL MODELER – GENERATING A QUERY
To save current model Click on Save As The save current model window will display. Name it and click save
7
SQL MODELER – CREATING A NEW MODEL
Click on New Model Three tables have been selected. If a join exists it will automatically be included Select Tables by Double Clicking on table name in Selection box
8
SQL MODELER – CREATING A NEW MODEL
Add columns to the query by double clicking on the Column Name Criteria Tab shows Selected Fields Table selections Schema Visible Field Alias Table Alias
9
SQL MODELER – CREATING A NEW MODEL
The Generated Query Tab shows the query based on selection criteria Right Click any in the Generated query pane Select View Query in SQL Editor to modify query
10
SQL MODELER – CREATING A NEW MODEL
Double Click on Sort Make selection list The code has been altered Double Click on Group by This will group each col
11
SQL MODELER – CREATING A NEW MODEL
Double Click on Null Value Subst Enter a value to be substituted if there is a null value for the selected field
12
SQL MODELER – CREATING A NEW MODEL
Double Click on Aggregate F. Select statistical formula As with the Group by command all selected fields must be included.
13
SQL MODELER – CREATING A NEW MODEL
Generated Query Results of Query
14
SQL MODELER – CREATING A NEW MODEL
Double Click on Where Cond Click on Ellipsis Highlight selection in List and Click OK.
15
SQL MODELER – CREATING A NEW MODEL
Click on Execute Query Button on the tool bar Results of Query Generated Query
16
SQL MODELER – CREATING A NEW MODEL
Double Click on Or Click on Ellipsis Highlight selection in List and Click OK.
17
SQL MODELER – CREATING A NEW MODEL
Click on Execute Query Button on the tool bar Results of Query Generated Query
18
SQL MODELER – INSERT STATEMENT
To Create an Insert Statement Click located on the toolbar Select Insert SQL CODE
19
SQL MODELER – DELETE STATEMENT
To Create an Insert Statement Click located on the toolbar Select Delete SQL CODE
20
SQL MODELER – UPDATE STATEMENT
To Create an Insert Statement Click located on the toolbar Select Update SQL CODE
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.