I have two tables as below:
agents
id    |  name
1     |  abc
2     |  def
stores
id | name | agent_id
1  | aaa  | 1
2  | bbb  | 1
I want to result like this:
agent_name | store_name
  abc      | aaa|bbb
Not:
agent_name | store_name
  abc      |   aaa
  abc      |   bbb
Which query can help me do this? I know concat function but I don't know how to add characters | between strings. 
 
     
     
    