J
JohnW
I am sorry to raise another question about table joins but, here goes....
Using the following SQL code:
SELECT
Using the following SQL code:
SELECT
- .[Vendor_No],
- .[Item_Desc],
- .[Desc_2],
- .[Prime_Vendor],
- .[Production_Cat],
- .[Production_Sub_Cat],
[Where].[Foundry Ref #], [Where].[Location], [Where].[Style], [Where].[Date
In/Out]
FROM [Where] LEFT JOIN
ON [Where].[Foundry Ref #] =- .[Vendor_No];
UNION
SELECT- .[Vendor_No],
- .[Item_Desc],
- .[Desc_2],
- .[Prime_Vendor],
- .[Production_Cat],
- .[Production_Sub_Cat],
[Where].[Foundry Ref #], [Where].[Location], [Where].[Style], [Where].[Date
In/Out]
FROM [Where] RIGHT JOIN
ON [Where].[Foundry Ref #] =- .[Vendor_No]
The result is ok, but the table has a collumn for Foundry Ref# and one for
Vendor_No e.g.
FRef# OtherFields Vendor_No
101 blaha
102 blahb
103 blahc 103
104 blahd 104
blahe 105
blahf 106
What I really expect is a single collumn that represents Foundry Ref# &
Vendor_No e.g.
FR/VN OtherFields
101 blaha
102 blahb
103 blahc
104 blahd
105 blahe
106 blahf
Any ideas? I am sure there is an easy fix.
Thanks,
JohnW
- .[Vendor_No]
- .[Production_Sub_Cat],
- .[Production_Cat],
- .[Prime_Vendor],
- .[Desc_2],
- .[Item_Desc],
- .[Vendor_No],
- .[Vendor_No];
- .[Production_Sub_Cat],
- .[Production_Cat],
- .[Prime_Vendor],
- .[Desc_2],
- .[Item_Desc],