How does one query the database?
-
Firstly, thank you for developing this plugin. It’s fantastic.
I’d like to query the data but am having issues aggregating. Can someone assist with the sample query below?
SELECT IF(ev.slug='user_id', ev.value, NULL) as user_id IF(ev.slug='date', ev.value, NULL) as date FROM table_name evThis gives me the values I want, but also all the NULLS inbetween. How can I aggregate or group the results?
I tried a simple GROUP BY user_id, but get an error. Any help is greatly appreciated!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘How does one query the database?’ is closed to new replies.