Is it possible to create a query containing the profiles (table: profiles) with another column containing an array of all the modifications made to the profiles (table: profiles_log)?
I want a query with this result :
I want to build an html table of profiles with an extension possibility to see the logs under each profile
2
Answers
I use winnmp to host my data locally to do my tests. Is it normal that it doesn't work?
USE
JSON_ARRAYAGG()
to get thetimestamp & log
value fromprofiles_log
group byprofiles_id
.Then join with
profiles
table and get data respectively as follows:Live query: db<>fiddle