G
Guest
Could anybody please instruct me on how to format a field in a SQL UNION
query? My SQL statement is like the following:
SELECT
#1/1/2005# As Period,Q_UNION_AR&Sales1.*
FROM [Q_UNION_AR&Sales1]
Union Select
#2/1/2005# As Period,Q_UNION_AR&Sales1.*
FROM [Q_UNION_AR&Sales1]
etc.......;
I want to format the period field like yyyy mm (2005 01 for 1/1/05 and 2005
02 for 2/2/05). How do I edit the SQL statement to accomplish this?
Thanks,
Bill Horton
query? My SQL statement is like the following:
SELECT
#1/1/2005# As Period,Q_UNION_AR&Sales1.*
FROM [Q_UNION_AR&Sales1]
Union Select
#2/1/2005# As Period,Q_UNION_AR&Sales1.*
FROM [Q_UNION_AR&Sales1]
etc.......;
I want to format the period field like yyyy mm (2005 01 for 1/1/05 and 2005
02 for 2/2/05). How do I edit the SQL statement to accomplish this?
Thanks,
Bill Horton