I have the following view called cont_struct_breaks:
pipe_segment_reference com_struct_score com_defects com_struct_index
2610 353 111 3.2
3988 266 97 2.7
5632 49 22 2.2
I have another table called structural_rating with fields
pipe_segment_reference, structural_score structural_defects, structural_index
I want to UPDATE values in "structural_rating" from "cont_struct_breaks" WHERE the pipe_segment_reference matches.
I cannot figure this out however, I tired doing something like this but no luck.
[EDIT]
The cont_struct_breaks view is create with a select statement which looks like this:
SELECT
structural_rating.Pipe_Segment_Reference,
cont_struct + structural_score AS com_struct_score,
cont_struct_d + structural_defects AS com_defects,
ROUND(com_struct_score / com_defects, 1) AS com_struct_index
FROM ...
UPDATE structural_ratings table from the select statement above if easier than the view.