Skip to content
Advertisement

Yes/No Format for query column

I have the following query, simplified for this question:

The query is designed to determine if a particular merchant has a “live” status depending on the “trans_live” value of the merchant’s LATEST transaction record.

This returns a “1” or “0”. However, I need a “yes/no” formatted column value.

NOTE: The section of the query as follows:

returns a result in the following format:

Following is the relevant table structure:

transaction_t

Advertisement

Answer

Please use case statement like below,

Syntax may be wrong but this would help

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement