Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Creating a Boolean to return a value of yes/no

930058Aug 22 2012 — edited Aug 23 2012
I am wanting to create a field that checks another field in the same table. If the field checked is a specific value I would like for the "boolean" field to be shown as Y for "yes".

Example:

FIELD 1 | FIELD 2 | FIELD 3
Friend Random Y
Enemy Random N

So the idea is that field three will automatically populate with "Y" when Friend is entered or "N" when enemy is entered. I am attempting to do this in Oracle.

Any help would be appreciated, someone told me to look into ISLEAF, but I am clueless on that. Tried searching didn't find much.

Thanks in Advance!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 20 2012
Added on Aug 22 2012
16 comments
3,698 views