I need to use a single query to get the first 5 values as a single row of results. I am aware that the following does not work but I think it gives a good example of what I am trying to achieve
SELECT
idimage[0] AS Row1, //idimage row 1 value
idimage[1] AS Row2, //idimage row 2 value
idimage[2] AS Row3, //idimage row 3 value
idimage[3] AS Row4, //idimage row 4 value
idimage[4] AS Row5 //idimage row 5 value
FROM
IMAGES
Does anyone know the best way to achieve this. I am sure the syntax must be pretty simple but i cant seem to find it.