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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

expression

Status
Not open for further replies.

rjhe22

Programmer
Jul 1, 2009
7
0
0
GB
he i need to right this as an expression in a drived column

anyone no how to do it
‘BLOOMBERG’ + BLOOMBERG COUNTRY FOR not empty BLOOMBERG COUNTRY else ISS_COUNTRY

i have the first part done

"BLOOMBERG" + BLOOM_COUNTRY

just dont no how to finish it of
 
Without seeing your data types, the derived expression will be something like:

ISS_COUNTRY =="" ? "BLOOMBERG" + BLOOM_COUNTRY : ISS_COUNTRY

Just depends on your database and how you handle blank or nulls against the ISS_COUNTRY column

May need to be ISNULL( ISS_COUNTRY) ? "BLOOMBERG" + BLOOM_COUNTRY : ISS_COUNTRY
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top