We have a table with names and their IDs like:
 1 | John
 2 | Mary
 3 | Ann
 ...
An array of IDs is given. For example, {1,4,7}. I need to get an array of names, which corresponds to these IDs.
How should I formulate the WHERE condition?
And how to return an array?
 
     
     
    