Unix Shell Scripting Case Statement In Sql