Hi
Table design is:
TCustomer
.Cust_ID
.Name
.Street
.Zip
.Code
What I've already got:
The result is:
Name Zip Cust_ID Nr.of.Names Nr.of.Zip
Joe 88342 12345 4 4
The Problem I've got, is that I have to check if .Code is empty or not (and display the one with Infos) and if the .Street is empty INSERT the information from the duplicate.
The next step is to put all the first "Cust_ID" into an array, and the duplicates into another array. (This is so I can change other Tables which are linked by the "Cust_ID".
appreciate any help at all
Nick
Table design is:
TCustomer
.Cust_ID
.Name
.Street
.Zip
.Code
What I've already got:
Code:
SELECT
TCustomer.Name,
TCustomer.Zip,
TCustomer.Cust_ID,
Count(TCustomer.Name) AS [Nr.of.Names],
Count(TCustomer.Zip) AS [Nr.of.Zips]
FROM
TCustomer
GROUP BY
TCustomer.Name,
TCustomer.Zip,
TCustomer.Cust_ID
HAVING
(((Count(TCustomer.Name))>1) AND ((Count(TCustomer.Zip))>1));
The result is:
Name Zip Cust_ID Nr.of.Names Nr.of.Zip
Joe 88342 12345 4 4
The Problem I've got, is that I have to check if .Code is empty or not (and display the one with Infos) and if the .Street is empty INSERT the information from the duplicate.
The next step is to put all the first "Cust_ID" into an array, and the duplicates into another array. (This is so I can change other Tables which are linked by the "Cust_ID".
appreciate any help at all
Nick