DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Generate Random Test Data in PostgreSQL
  • Database Connection Pooling at Scale: PgBouncer + Multi-Tenant Postgres (10K Concurrent Connections)
  • Why PostgreSQL Vacuum Matters More Than You Think
  • No More ETL: How Lakebase Combines OLTP, Analytics in One Platform

Trending

  • Build a GitHub Slack Bot With AWS Bedrock and MCP, Part 1
  • Chaos Engineering Has a Blind Spot. Agentic AI Lives in It.
  • Securing the AI Host: Spring AI MCP Server Communication With API Keys
  • Why DDoS Protection Is an Architectural Decision for Developers
  1. DZone
  2. Data Engineering
  3. Databases
  4. Connecting to the PostgreSQL Database From JMP

Connecting to the PostgreSQL Database From JMP

In this article, see how to connect to the PostgreSQL database from JMP.

By 
Jordan Sanders user avatar
Jordan Sanders
·
Apr. 07, 20 · Tutorial
Likes (3)
Comment
Save
Tweet
Share
7.5K Views

Join the DZone community and get the full member experience.

Join For Free

JMP is a suite of applications for statistical analysis developed by a business unit of SAS Institute. The first version of the software was released way back in 1989 for the Macintosh platform; modern versions of JMP support macOS and Windows. 

The software is aimed at scientists, engineers, and all kinds of researchers. JMP offers a free, fully-functional 30-day trial, whereas students can download JMP Student Edition -  select textbooks include a unique 36-month single-user license. JMP Pro can be used for data mining and building predictive models - the tool shines at processing large volumes of data, in particular when the data is messy or includes outliers. 

Market research shows that companies using JMP are most often found in the US and have more than 10, 000 employees and over 1 billion USD in revenue. JMP’s market share among business intelligence tools is rather small (less than one percent), but the size and revenue of these companies are really impressive - you probably won’t have difficulty finding a high-paying job to apply your knowledge of JMP and statistics. 

JMP can import data from a wide range of data formats: plain text files, Excel files, SAS datasets, ODBC compatible databases, etc. The ODBC interface allows you to access data in any ODBC-compliant SQL or NoSQL database, as well as cloud applications, provided that you have the appropriate ODBC driver.

Configuring Process

Now, let’s configure a DSN for PostgreSQL driver and connect to the database from JMP. Devart ODBC Driver for PostgreSQL allows you to establish a connection to the database directly via TCP/IP, without using a PostgreSQL client. You can also establish a connection to the PostgreSQL server through SSH, which is not available in the standard driver (see the full comparison table on the product page).

First, configure a DSN for your driver. Open the ODBC Data Source Administrator utility, click Add and specify your server address, port (if it’s other than the default 5432), database name, schema (optionally), username and password. Click Test Connection to check that you’ve properly configured the connection string. If you see the success message, click OK to save the DSN.

Screenshot of PostgreSQL Configuration on Devart

Start JMP. Select File > Database > Query Builder. In the window that opens, click New Connection to select a data source.

File > Database > Query Builder

Switch to the Machine Data Source tab and select the previously configured DSN for the PostgreSQL driver.

Switch to the Machine Data Source tab

Select the table or schema you want to connect to and click Next.

Select the table or schema

You’ll see the description of the selected table. A preview of the table can be viewed in the Table Snapshot tab. JMP offers two ways to retrieve the contents of the table: the whole table will be fetched when you click on Import Now, or you can select the columns to be retrieved by clicking on Build Query.

preview of the table

We’ll choose the latter method. In the window that opens, add the required columns to the SQL statement by selecting them from the left side pane and clicking Add. Then, run the query.

add the required columns to the SQL statement

Selected columns will be retrieved from the table and displayed in the grid.

Columns displayed in the grid

Now, we can do some basic analysis on that data. For example, let’s create a distribution chart by selecting it from the Analyze menu, and add salary and job fields as values for the charts to find out the highest-paying jobs in the company and the median salary. Let’s see the results:

Results

As you can see, the data retrieval process using an ODBC driver is really easy, so you can focus on the data analysis tasks.

Database PostgreSQL Data mining

Opinions expressed by DZone contributors are their own.

Related

  • Generate Random Test Data in PostgreSQL
  • Database Connection Pooling at Scale: PgBouncer + Multi-Tenant Postgres (10K Concurrent Connections)
  • Why PostgreSQL Vacuum Matters More Than You Think
  • No More ETL: How Lakebase Combines OLTP, Analytics in One Platform

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook