Hi everyone
i need some help down here. i am trying to connect multiple db and at the same time i want to sum the value of the column. what i have right now is this
SELECT SUM(total) as branch1sales FROM icm.sales
UNION
SELECT sum(total) as branch2sales FROM hism.sales
its computing correctly but the problem is the branch2 alias is being invoke. what am i doing wrong? see attached image for the output
thanks