say I have a table like this:
table messages
id | show_message | message
3 | false | "some message"
4 | true | "another message"
I want to only select the message column if show_message column is true, but I also want to select the show message column either way. Would a subquery be suitable in the scenario? I feel like I'm overthinking this. I'm using Postgres 9.5