So I have a table called MATERIAL with a field named MATERIAL_SHIPPED. It will either have a 1 or 0 value making it as shipped or not.
There may be multiple materials for each PROJECT record. I want to set a flag at the PROJECT level saying that each MATERIAL on the PROJECT was shipped.
I'm using CASE to do this, but how can I only flag when each MATERIAL is shipped? Using a CASE WHEN MATERIAL_SHIPPED = 1 THEN 1 AS PROJECT_SHIPPED_FLAG isn't working for me because of this.