14.03.2014 Views

Using JMP - SAS

Using JMP - SAS

Using JMP - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

96 Import Your Data Chapter 3<br />

Import Data from a Database<br />

Use the WHERE Clause Editor<br />

<strong>JMP</strong> provides help building WHERE clauses for SQL queries during ODBC import. It provides a WHERE<br />

clause editor that helps you build basic expressions using common SQL features, allowing vendor-specific<br />

functions. For example, you do not need to know whether SQL uses ‘=’ or ‘==’ for comparison, or avg() or<br />

average() for averaging.<br />

In addition, string literals should be enclosed by single quotes (‘string’)rather than double quotes<br />

(“string”).<br />

To open the WHERE clause editor:<br />

1. Connect to a database by following the steps in “Open Data from a Database” on page 88.<br />

2. From the Database Open Table window, shown in Figure 3.25, click the Advanced button.<br />

3. Click the Where button.<br />

USE the WHERE Clause Editor to add any of the following from the work panel: expressions, functions,<br />

and terms. They are applied to the highlighted red box.<br />

1. Click the Table Name Browser to select a table. The columns in that table appear in the list.<br />

2. Click the SQL Vendor Name Browser to select the type of SQL that you want to use: GenericSQL,<br />

Access, DB2, MySQL, Oracle, SQL Server, or all of the above. Perform an action by clicking a function<br />

or operator in the list and selecting an operator from the list that appears.<br />

Note: The following SQL Server data types are not supported: Binary, Geography, and Geometry.<br />

3. Select an empty formula element in the formula editing area by clicking it. It is selected when there is a<br />

red outline around it. All terms within the smallest nesting box relative to the place that you clicked<br />

become selected. The subsequent actions apply to those combined elements.<br />

4. Add operators to an expression by clicking buttons on the keypad.<br />

5. (Optional) To customize your WHERE clause, select one of the options from the red triangle menu<br />

above the keypad:<br />

Show Boxing<br />

Larger Font<br />

Smaller Font<br />

Show or hide boxes around the WHERE clause terms.<br />

Increase the font size of the formula.<br />

Decrease the font size of the formula.<br />

Simplify<br />

Simply the WHERE clause statement as much as possible.<br />

The WHERE clause editor works similarly to the Formula Editor, which is described in the “Formula<br />

Editor” chapter on page 203.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!