I would like to add a new field from a new table to the canned financial container in Sage Intelligence, which is written as a lengthy SQL query. I have tried to use the following syntax:
I would like to add a new field from a new table to the canned financial container in Sage Intelligence, which is written as a lengthy SQL query. I have tried to use the following syntax:
I am not exactly sure what you are trying to accomplish but your ON will not work as you have not declared the left side of this UNION in your FROM statement. I think this might help you make it work. if you want the GRU_0 from the GACCOUNT table then you may want the Option #2 I provided below.
Option #1
SELECT [GACCGRUPYM].[GRU_0] AS "GROUP"
FROM ([GACCOUNT]
LEFT JOIN [GACCGRUPYM]
ON [GACCOUNT].[ACC_0] = [GACCGRUPYM].[ACC_0])
Option #2
SELECT [GACCOUNT].[GRU_0] AS "GROUP"
FROM ([GACCOUNT]
LEFT JOIN [GACCGRUPYM]
ON [GACCOUNT].[ACC_0] = [GACCGRUPYM].[ACC_0])
*Community Hub is the new name for Sage City