It is a bit complicated to explain into the main caption, but the situation is as follow :
– I have 2 tables :
Users, Preferences.
defined as follow
Users :
ID | NAME | FK_NODE_PREFERENCES
Preferences :
ID | FK_USERS | PREFERENCE_DESCRIPTION
the idea is to have alot of preferences for each user…
the results shall look as follow :
USER | ALL_PREFERENCES
- I need to search by a part of the preference string and i need to have only 1 row into the result select query, which having all the preferences related ot the user as a text into a single record ?
I’m not familiar with Firebird, but it seems to have a LIST() function which should be an equivalent to the GROUP_CONCAT() function in MySQL. (see documentation of
LIST())So, basically the query should look something like this:
So, I’m not sure if this actually works, but the direction should be the right one.