Initial work going into select ... case statement