Custom analysis & SQL Configurator
The Custom Analysis & SQL Configurator enables direct database access for custom fleet analysis beyond standard reports. Write SQL queries, explore your complete dataset, and create interactive visualizations in one integrated interface.
Interface overview

The workspace of SQL Configurator consists of 3 main sections:
Database Schema browser - View table structures and click on schemas for interactive relationship exploration on dbdiagram.io
SQL Query Execution panel - Write PostgreSQL queries and view results with immediate feedback
Interactive visualization interface - Transform query results into charts using drag-and-drop functionality
Your data structure
Your PTL data appears through two primary schemas organized by source and purpose:
raw_business_data
raw_telematics_data
Organizational and operational information. - Core entities: users, devices, objects, vehicles, employees - Operational data: tasks, forms, zones, places, garages - Reference data: models, entities, status information - Relationship tables: vehicle-driver assignments, user-zone mappings
Real-time GPS tracking, sensor readings, and device status - tracking_data_core: GPS coordinates, speed, altitude, event data - inputs: Sensor readings (fuel, temperature, voltage) - states: Device status indicators (ignition, doors, operational modes)
Creating visualizations from query results
Transform your SQL query results into interactive visualizations through a structured workflow:
Verify data configuration
Check that all required data categories are enabled in your system settings:
Navigate to PTL Configuration in the left sidebar
Verify that needed data categories (Tracking Data, Inputs, States) are enabled for your analysis requirements
If changes are needed, update configuration and consider running historical data loading for retroactive application
Develop and execute your query
In the SQL Query Execution panel:
Write your analysis query using PostgreSQL syntax and the formatting requirements above
Include appropriate field names, data conversions, and filtering for your visualization needs
Click Execute to run your query and generate the dataset
Review results to ensure data quality and expected output format
Access visualization interface
Once your query executes successfully:
Switch to the Visualization tab that appears above your query results
Your query results automatically become available as data fields in the visualization interface
The interactive chart builder loads with your dataset ready for drag-and-drop visualization creation
Create interactive visualizations
Use the visualization interface to build charts:
Drag fields from your query results to chart configuration areas (X-axis, Y-axis, filters, colors)
Choose appropriate visualization types based on your data characteristics and analysis objectives
Apply filters and styling to refine your visual presentation
Export completed visualizations in multiple formats (PNG, SVG, CSV, base64) for sharing and reporting\
Query development tips
Expand the sections below to discover recommended practices for working with queries in SQL Configurator.
Next steps
Create custom visualizations - Complete process for creating charts and visual analysis
SQL Recipe Book - Advanced query patterns organized by analytical scenario
Bronze layer documentation - Complete database schema reference and field definitions
Last updated
Was this helpful?