I am trying to update a column (Trust) and set it to 'No' if any of the rows per group (Alias,BlockNo,Variety) has a value in column (Accurate) equal to 'No'. A bit difficult to explain. I am inserting a excel picture and try to explain - sorry don't know how else to explain.
Whenever an alias/variety combination has 'No' in the Accurate column all Trust rows for the alias/variety combination should be set as 'No'. Example Alias HANBAS has five rows (highlighted) where Accurate for CHB (in variety) equal 'No', therefor all rows for HANBAS and CHB(variety) should be set to 'No' in Trust.
I have tried the following, but get an error.
set trust =
WHERE Accurate ='No'
GROUP BY Alias, variety,accurate);
error : Only one expression can be specified in the select list when the subquery is not introduced with EXISTS.
I wanted to include a script file for the table and a .txt for the data, but cannot figure out how to do that on this forum.
This text will be hidden