G
Guest
Hi everybody,
I am quite stumped on how to write a query. I have two tables that hold
securites for different periods I need to combine both into one table but the
twist is that they can have different securities in each table. A short
example would be.
Table 1
Security 9/30/2005Market_value
IBM 1000
Microsoft 2000
XYZ 3000
Table 2
Security 12/31/2005Market_value
IBM 1500
Microsoft 2500
America Fund 3000
The results I would like would be
Table 1
Security 9/30/2005Market_value 12/31/2005Market_value
IBM 1000 1500
Microsoft 2000 2500
XYZ 3000
America Fund 3000
The tables show that XYZ was dropped after 9/31/2005 and America Funds was
brought in. I have struggled with this query for a couple of days. Any help
would be appreciated.
Jones
I am quite stumped on how to write a query. I have two tables that hold
securites for different periods I need to combine both into one table but the
twist is that they can have different securities in each table. A short
example would be.
Table 1
Security 9/30/2005Market_value
IBM 1000
Microsoft 2000
XYZ 3000
Table 2
Security 12/31/2005Market_value
IBM 1500
Microsoft 2500
America Fund 3000
The results I would like would be
Table 1
Security 9/30/2005Market_value 12/31/2005Market_value
IBM 1000 1500
Microsoft 2000 2500
XYZ 3000
America Fund 3000
The tables show that XYZ was dropped after 9/31/2005 and America Funds was
brought in. I have struggled with this query for a couple of days. Any help
would be appreciated.
Jones