I would like to know how to display the data above into one row based on the field value i did a case select but it's coming up as the following image
(SELECT lead_id,
case lead_id
case field_number when 1 then value end as firstname
case field_number when 1 then value end as firstname,
case field_number when 2 then value end as lastname,
case field_number when 10 then value end as email,

