A rotary valve adapted for injection of a fluid sample into a flow path, the valve comprising a stator and a rotor, said stator comprising a number of connection ports protruding into the stator and each ending in an orifice on an inner stator face, which is a face of the stator making contact in a fluid tight manner with an inner rotor face of the rotor, said inner rotor face being rotatably movable around a rotational axis relative to the inner stator face, wherein said inner stator face comprises: - a first inlet orifice communicating with a first inlet port to the stator, said first inlet orifice being positioned centrally in the inner stator face, which center coincides with the rotary axis of the valve, - a second inlet orifice communicating with a second inlet port to the stator, - a third inlet orifice communicating with a third inlet port to the stator, - a first outlet orifice communicating with a first outlet port of the stator, - a second outlet orifice communicating with a second outlet port of the stator, - a third outlet orifice communicating with a third outlet port of the stator, - a first connection orifice communicating with a first connection port of the stator, - a second connection orifice communicating with a second connection port of the stator, and wherein said second and third inlet orifices (36b, 37b), said first, second and third outlet orifices (34b, 33b, 38b) and said first and second connection orifices (32b, 35b) are distributed substantially on a circle around the center of the inner stator face, said circle having a radius, and said inner rotor face comprises a first groove, a second groove, a third groove, a fourth groove and a fifth groove, characterized in that said grooves (41 to 45) are so arranged that, - in a first rotary position of the rotor: the first groove connects the first connection orifice with the second outlet orifice, the second groove connects the first inlet orifice with the first outlet orifice, and the third groove connects the second connection orifice with the third inlet orifice - in a second rotary position of the rotor: the second groove connects the first inlet orifice with the first connection orifice, the fourth groove connects the first outlet orifice with the second connection orifice, and the fifth groove connects the second inlet orifice with the third outlet orifice, - in a third rotary position of the rotor: the fourth groove connects the second outlet orifice with the first connection orifice, and the fifth groove connects the second inlet orifice with the second connection orifice. - a first inlet orifice communicating with a first inlet port to the stator, said first inlet orifice being positioned centrally in the inner stator face, which center coincides with the rotary axis of the valve, - a second inlet orifice communicating with a second inlet port to the stator, - a third inlet orifice communicating with a third inlet port to the stator, - a first outlet orifice communicating with a first outlet port of the stator, - a second outlet orifice communicating with a second outlet port of the stator, - a third outlet orifice communicating with a third outlet port of the stator, - a first connection orifice communicating with a first connection port of the stator, - a second connection orifice communicating with a second connection port of the stator, and - in a first rotary position of the rotor: the first groove connects the first connection orifice with the second outlet orifice, the second groove connects the first inlet orifice with the first outlet orifice, and the third groove connects the second connection orifice with the third inlet orifice the first groove connects the first connection orifice with the second outlet orifice, the second groove connects the first inlet orifice with the first outlet orifice, and the third groove connects the second connection orifice with the third inlet orifice - in a second rotary position of the rotor: the second groove connects the first inlet orifice with the first connection orifice, the fourth groove connects the first outlet orifice with the second connection orifice, and the fifth groove connects the second inlet orifice with the third outlet orifice, the second groove connects the first inlet orifice with the first connection orifice, the fourth groove connects the first outlet orifice with the second connection orifice, and the fifth groove connects the second inlet orifice with the third outlet orifice, - in a third rotary position of the rotor: the fourth groove connects the second outlet orifice with the first connection orifice, and the fifth groove connects the second inlet orifice with the second connection orifice. the fourth groove connects the second outlet orifice with the first connection orifice, and the fifth groove connects the second inlet orifice with the second connection orifice.