I've tried to solve this issue myself but I can't seem to find a work around as I'm pretty new to SQLite.
Basically I've got a large db of what people like structured by the likes themselves (with a row for each like and several rows for each person). What I would like to do is restructure it so that each person is a row and the likes are columns in the table (binary variables saying whether person likes item or not).
But the complication is that I would like to do that on an adhoc basis pulling different tables out of the data where the number of columns would change.
If anyone has an answer or guidance that would lead me to one it would be much appreciated.
Thanks
Matt