I have this two table
*tableA
id - name
1  - a
2  - b
*tableB
col - name
a  - red
b  - green
b  - white
a  - black
and on this query
SELECT a.id
     , a.name
     , b.name 
  FROM tableA a 
  LEFT 
  JOIN tableB b 
    ON A.name = B.id
I have
1 - a - black
1 - a - red
2 - b - green
2 - b - white
now i want to JOIN another tableC getting first 4 element based on position
tableC
pos - name
1 - first
2 - second
3 - third
4 - fourth
5 - fifth
having this result
1 - a - black - first
1 - a - red - second
2 - b - green - third
2 - b - white - fourth
how to JOIN last table with rowNumber -> tableC.pos