I have one table where we are collecting status data from different sensors. For reporting purposes I would need to group information for each sensor (SGUID) to one row. Each sensor is sending reader (RGUID) and value for reader (VAL).
Source table:

Goal result:

I have heard about pivot's but don't know how to use those in this kind of case.
Dynamic Pivot. Probably duplicate for: stackoverflow.com/questions/10404348/…