Updating salary for different departments using cursor