Pivot data using SQL, ES & TypeScript & Generics (ES2018)

Quite a few times, when we need to dynamically generate attributes based on data values, in Database language — table’s rows values and…