vendredi 15 janvier 2016

SQLite reshape long to wide for many keys

I want to to convert data from long to wide format in SQLite, when the number of keys (to-be columns) is very large. There are two relevant questions, one that provides a very good answer fro MySQL (Mysql, reshape data from long / tall to wide) and another one that specializes it for SQLite (SQLite long to wide formats?), but in both cases you have to manually note the keys. In my case, keys are a few hundreds, so it is not possible to do it manually. Can you think of an automated solution? Thank you!

Aucun commentaire:

Enregistrer un commentaire