OK, here goes. This must be quite an easy thing to do, but all I am doing is ripping out my ever shrinking hair !!!!
I have an SQL query along the lines of:
Select A.ID,
A.field
(select vchr_Number from tbl_two B where B.int_ParentId = A.ID) as 'Number1',
(select vchr_Number from tbl_three C where C.int_ParentId = A.ID) as 'Number2',
(Number1 + Number2) as 'Number3'
From tbl_Something A
What I am trying to do is add Number1 and Numnber2 together. I do need to return all three values
As both values are strings if I just use the normal addition '+', it will just concatenate the two strings so if Number1 = 7 and number2 = 8 then Number3 would be 78, not 15. I have tried using the Cast command to convert the string into integers, not sure about syntax.