Hello, Need help!
My table has 2 columns and values it will store are similar to the below one

I need to transpose the values in optionID into columns and need to fit starting from c1 to c5 based on each PersonID. If there are more than 5 values for a PersonID then i need to ignore the remaining values above first 5.

Can you please help in writing query to get tis result