Question: Below is the table from which I need to create conditionalize view.

[![enter image description here](https://i.stack.imgur.com/Nzmgj.png)](https://i.stack.imgur.com/Nzmgj.png)

and I am getting one flag from different table. So based on the flag values i.e. if flag=1 then I need to display actual column values from table, and if flag=0 then show all column values as null values.
I know we can handle it using CASE statement but here, in may case column count is very big so need to handle it in better way.

Answer: 
There's always the comma operator, although it doesn't make the code any more readable

```
return void_function(), 0;

```
Well, you can always (ab)use preprocessor macros:

```
#define CALL_AND_RETURN(x) {x; return 0;}

[...]

CALL_AND_RETURN(void_function());

```

I don't think this is a good idea, though, since it doesn't gain you much and it makes your code harder for other people to understand.