I want TO get multiple rows AND columns using CASE but getting this error. [Table structure reference of all 3 tables]