Example of the creation, insertion and analysis of marketing data using postgresql