Subject | Re: [firebird-support] Calc field displays blank if 1 field is blank |
---|---|
Author | Martijn Tonies |
Post date | 2004-08-02T18:59:08Z |
Hi,
There's an easy workaround by using COALESCE.
The question is, however: why are you storing NULL?
Do you want to store NULL or an empty string?
With regards,
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server.
Upscene Productions
http://www.upscene.com
> This SQL produces a blank if the first or last name is blank:I assume you mean "if the other name is NULL", right?
>
> ((Last_Name||', ')||First_Name)
>
> How can I write it so it will display just the last name or first name
> if the other name is blank?
There's an easy workaround by using COALESCE.
The question is, however: why are you storing NULL?
Do you want to store NULL or an empty string?
With regards,
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server.
Upscene Productions
http://www.upscene.com