Hi,
I have a union query that combines two sets of names together.
It works well and my SQL is as follows
SELECT tblName.LastName
FROM tblName UNION SELECT tblName1.LastName
FROM tblName1
I'd now like to add the name 'Smith' to my query result and have tried the following and several variations with no success.
SELECT tblName.LastName
FROM tblName UNION SELECT tblName1.LastName
FROM tblName1 UNION SELECT 'Smith'
Could someone please tell me the correct syntax.
Thanks.
I have a union query that combines two sets of names together.
It works well and my SQL is as follows
SELECT tblName.LastName
FROM tblName UNION SELECT tblName1.LastName
FROM tblName1
I'd now like to add the name 'Smith' to my query result and have tried the following and several variations with no success.
SELECT tblName.LastName
FROM tblName UNION SELECT tblName1.LastName
FROM tblName1 UNION SELECT 'Smith'
Could someone please tell me the correct syntax.
Thanks.