Tuesday, June 27, 2017

Simple Solution for Metrics Targets on MSSQL

DZone Database Zone
Simple Solution for Metrics Targets on MSSQL

I needed a flexible solution to keep measurements with target values in the SQL Server database. After playing with some tables and functions, I came out with a simple, clean, and flexible solution that also fits well for many other scenarios besides the one I had to support. This blog post summarizes my work and provides all the SQL stuff needed to reproduce it.

Creating and Designing a Metrics Database

We start with creating a database with a minimal set of tables needed to track measurements:

No comments:

Fun With SQL: Functions in Postgres

DZone Database Zone Fun With SQL: Functions in Postgres In our previous  Fun with SQL  post on the  Citus Data  blog, we covered w...