Home / Companies / Fivetran / Blog / Post Details
Content Deep Dive

Using SQL to create segments based on geo locations

Blog post from Fivetran

Post Details
Company
Date Published
Author
Sean Lynch
Word Count
888
Language
English
Hacker News Points
-
Summary

Fivetran Activations Audience Hub offers segmentation tools that operate directly on data warehouses, allowing for enhanced data governance, performance, and real-time access to complete datasets. A unique feature is the ability to use SQL for segmentation, akin to using formulas in Excel, which can significantly leverage the power of a data warehouse. This is particularly beneficial for creating geo-targeted marketing campaigns, as it enables marketers to tailor offers based on customers' geographic locations, enhancing the relevance and timeliness of marketing efforts. The platform supports various geographic analysis functions across major data warehouses like BigQuery, Redshift, and Snowflake, offering capabilities such as distance calculations and region definitions using SQL functions. While some functions may not be natively supported in certain databases, alternatives like the Haversine Formula can be employed for geographic calculations, ensuring flexibility across different systems.