I am new to postgres and I want to be able to set value to Y if order (order table) is a first month order (first month order table)
first month order table is as per