I have table that looks like this in redshift
id name value 1 element1 100 2 element2 200 3 element3 100 4 element4 50 1 element1 100 2