My tables
Table function
id function users
-----------------
1 f1 1,2
2 f2 2,3
3 f1 4,5
4 f2
Table users
id name
-------
1 Mark
2 Louis
3 John
4 Denver
5 Nat
I need to write a query that produces the following results:
f1, Mark, Louis
f2, Louis, John
f1, Denver, Nat
f2
Thanks for any help and excuse my poor english.