How can I concatenate a label with the value of a field that I'm returning from a SELECT statement in DB2?
Here's my SELECT statement:
The field with the label is: Unknown Agency + fieldname.
------------------------------------------
SELECT nysa.bp10t_appropriation.agency_code, nysa.bp10t_appropriation.agency_code, 'Unknown Agency - ' + nysa.bp10t_appropriation.agency_code, '','', 0, 0,'A', 'DOB Load', CURRENT TIMESTAMP FROM nysa.bp10t_appropriation LEFT JOIN nysa.bp02t_agency ON nysa.bp10t_appropriation.agency_code = nysa.bp02t_agency.agency_code
--------------------------------------------
In SQL Server, this works but I don't know the syntax for db2.
Thanks in Advance
John
Here's my SELECT statement:
The field with the label is: Unknown Agency + fieldname.
------------------------------------------
SELECT nysa.bp10t_appropriation.agency_code, nysa.bp10t_appropriation.agency_code, 'Unknown Agency - ' + nysa.bp10t_appropriation.agency_code, '','', 0, 0,'A', 'DOB Load', CURRENT TIMESTAMP FROM nysa.bp10t_appropriation LEFT JOIN nysa.bp02t_agency ON nysa.bp10t_appropriation.agency_code = nysa.bp02t_agency.agency_code
--------------------------------------------
In SQL Server, this works but I don't know the syntax for db2.
Thanks in Advance
John