createorreplaceviewv_casselectDEP_CODE,EM_CODE,A_REASONasreasonfromaunionselectDEP_CODE,EM_CODE,AB_REASONasreasonfromb