LO 6.3.3.2, HSQLDB, MacOS Mojave 10.14.6
Trying to define an ALIAS as combining the following:
Guest_Preferred_Name (if it exists) + Guest_Lastname, otherwise Guest_Firstname & Guest_Lastname
Where if Guest_Preferred_Name doesn’t exist then Guest_Firstname is joined to Guest_Lastname
Can use COALESCE ( “Guest_Preferred_Name”, “Guest_Firstname” ) on it’s own which gives me the first part but then when I try and nest that within CONCAT to join to the Guest_Lastname within the same command I get a SYNTAX error from within the Query however somehow I managed to save it prior to this and running the Query without Editing first gives the right outcome
CONCAT( COALESCE ( [Guest_Preferred_Name]; [Guest_Firstname] ) || ', ’ || [Guest_Lastname] )
I’m guessing it’s a missing " or ’ somewhere but if someone could point me in the right direction I would greatly appreciate it