Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Decode with NVL derived fields

Status
Not open for further replies.

RptSm

MIS
Dec 28, 2004
19
US
I need to create a field that looks at the union code and if its null they put an "N" else "U".

Any suggestions would be appreciated.
 
I think you could do this:

DECODE(THE DATA FIELD HERE,NULL,'N','U')

Make sure you put the data field in.
DO NOT PUT A ' BEFORE AND AFTER NULL .

CharlesCook.com
ADP - PeopleSoft - SAP
ReportSmith - Crystal Reports - SQR - Query - Access
Reporting - Interfaces - Data Mining
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top