Hi all,
Heres an interesting one,
Some of our Sales people are sumbitting duplicate credit cards applications to us. They are submitting an application for a blue card and a red card for the customer (hence they get paid twice). This is against the rules and is hard for us to detect.
Here is a sample of the type of duplicated I'm trying to filter:
tblMain
----------
SalesExec | CardType | CustName | CustDOB
=================================
John Harrit | RedCard | Joyce | 03/05/69
John Harrit | BlueCard | Joyce | 03/05/69
This is clearly a duplicate because CustName is the same and CustDOB is the same and it has been taken by the same SalesExec.
The SalesExec has signed the customer up for two credit cards even only one is allowed per customer.
I need to run a clever query that can detect this.
I have a few different ideas but niether of them seem to do what I want. Any concepts welcome.
Heres an interesting one,
Some of our Sales people are sumbitting duplicate credit cards applications to us. They are submitting an application for a blue card and a red card for the customer (hence they get paid twice). This is against the rules and is hard for us to detect.
Here is a sample of the type of duplicated I'm trying to filter:
tblMain
----------
SalesExec | CardType | CustName | CustDOB
=================================
John Harrit | RedCard | Joyce | 03/05/69
John Harrit | BlueCard | Joyce | 03/05/69
This is clearly a duplicate because CustName is the same and CustDOB is the same and it has been taken by the same SalesExec.
The SalesExec has signed the customer up for two credit cards even only one is allowed per customer.
I need to run a clever query that can detect this.
I have a few different ideas but niether of them seem to do what I want. Any concepts welcome.