I have the following SQL statement set out in my union query.
SELECT [Field1], [field 2]
FROM [Table 1]
UNION
SELECT [Field 1], [field 2]
FROM [Table 2]
However I need to make field one numeric, so I can have this 00000 format in the column. I think I need to do this by using CAST and NUMERIC (5) but I am not sure how I would set this out in my SQL statement as when I do it comes back with Syntax error or argument.
Please can anyone help?
SELECT [Field1], [field 2]
FROM [Table 1]
UNION
SELECT [Field 1], [field 2]
FROM [Table 2]
However I need to make field one numeric, so I can have this 00000 format in the column. I think I need to do this by using CAST and NUMERIC (5) but I am not sure how I would set this out in my SQL statement as when I do it comes back with Syntax error or argument.
Please can anyone help?