How to use Case When SQL Query

Published --