Example dataset views in Postman
Datasets are available on Postman Solo, Team, and Enterprise plans. For more information, see the pricing page.
Views use SQL to define how data is retrieved from your dataset. By default, views use SQLite-compatible syntax and functions. If a dataset has only one external data source type, such as MySQL or PostgreSQL, you can also use syntax and functions specific to that data source.
The following examples show common ways to use views with different data sources.
About the example dataset
In the following examples, assume you have a dataset with the following data sources:
-
A local CSV file named
userswith the following data: -
A MySQL database named
orderswith the following data:
Select all data
You can create a view that selects all rows and columns.
Filter rows
You can filter rows to return only the data your workflow needs.
Create new columns
You can create new columns using expressions and aliases in your query. This is useful when your tests or mock servers need values derived from existing data.
SQLite example:
MySQL example:
Join multiple data sources
You can combine data from multiple data sources, such as a local CSV file and a MySQL table. This is useful when you want a consolidated view of data that’s stored in different places.