Data Relationships
Last updated
Last updated
In real-world scenarios, data is rarely confined to a single table. Information is often distributed across multiple tables that are logically connected. This is where relationships between tables come into play. Table relationships define how data in one table corresponds to data in another table, enabling more complex and meaningful queries and analyses.
Has one (One-to-One Relationship): Each row in one table corresponds to exactly one row in another table.
Has many (One-to-Many Relationship): A single row in one table can relate to multiple rows in another table. For example, a Customer Table (one side) can relate to multiple rows in an Orders Table (many side), representing the orders placed by each customer.
Belongs to (Many-to-One Relationship): Many rows from one table are related to a single row in another table. For instance, multiple orders in the Orders Table can relate back to a single entry in the Customer Table.
All tables connected with Presight are located at Data Hub, tab Data:
Tab Data will show all the data sources based on your workspace configurations:
PostgreSQL: you database name connected to Presight via API Connector, this can be PostgreSQL, Amazon Redshift, Google BigQuery or any other cloud providers you are using. This will list all the tables coming from the database.
Query: your Custom Queries
Google Sheet: your Google Sheets Connection
Custom: all tables created on Presight via Table Builder
You can view your raw tables/cubes from by clicking on View at the Table's row.
You can change column permission, filter specific values and change data type at each column at the raw table:
If you are the admin of your workspace, you can edit Table Restriction and Column Restriction for each table. Details for Access Restriction are in the following link:
You can view Relationship between tables by dragging them to the Diagram Board:
You can also make or edit Relationships here.
Instructions for making and editing Relationships in the documentations below: