Home All Groups Group Topic Archive Search About
Author
14 Jul 2006 5:11 PM
Robert Bravery
HI all,

I was wondering HOW DBA's handle things like this.
Here is a scenario, simlpistict but real. Also multipl this by as many as
you want to understand the potential proble,m
A few salesman on the road, each with some kind of mobile device. THey are
not conencted to the company database, but will syncronise when they reach
the office. This could be hours to days later. Two of the salesman might
work an area. salesmana aproaches Joe and sels him some stuff. Joe is a new
client so the Salesmans disconnected app creates adataset, withJoes new
information, intending to INSERT Joe as a new customer, he also creates new
invoices with  line items, products etc.
Next day Salesmanb Aproaches Joe, and sells him some more stuff, but
according to him Joe is  new customer. exactly sme scenario as above, but he
Inserts and updates the Company database the next day. SOme of the items
sold to Joe, have already been orders and invoiced by salesmana.
SAlesman a then comes in and trys to nsert and update the Company database.
We now have so many potential problems ranging from duplicate Joes, to
Duplicate sales to sales not being assigned to the crrect salesman. Hoe does
one deal with this situation, in the real world, when it comes to
PrimaryKeys, contrants, making sure of the integraty of the Company data,
etc etc. THe list goes on.
One of the many potential things to fix, is the erging of invoice data,
re-aligning the sales data to the correct salesman etc etc.

This sceario not only happens in the idea of sales, but in a wide variety of
situations


Thjanks

Robert

Author
14 Jul 2006 5:33 PM
lord.zoltar
Robert Bravery wrote:
Show quote
> HI all,
>
> I was wondering HOW DBA's handle things like this.
> Here is a scenario, simlpistict but real. Also multipl this by as many as
> you want to understand the potential proble,m
> A few salesman on the road, each with some kind of mobile device. THey are
> not conencted to the company database, but will syncronise when they reach
> the office. This could be hours to days later. Two of the salesman might
> work an area. salesmana aproaches Joe and sels him some stuff. Joe is a new
> client so the Salesmans disconnected app creates adataset, withJoes new
> information, intending to INSERT Joe as a new customer, he also creates new
> invoices with  line items, products etc.
> Next day Salesmanb Aproaches Joe, and sells him some more stuff, but
> according to him Joe is  new customer. exactly sme scenario as above, but he
> Inserts and updates the Company database the next day. SOme of the items
> sold to Joe, have already been orders and invoiced by salesmana.
> SAlesman a then comes in and trys to nsert and update the Company database.
> We now have so many potential problems ranging from duplicate Joes, to
> Duplicate sales to sales not being assigned to the crrect salesman. Hoe does
> one deal with this situation, in the real world, when it comes to
> PrimaryKeys, contrants, making sure of the integraty of the Company data,
> etc etc. THe list goes on.
> One of the many potential things to fix, is the erging of invoice data,
> re-aligning the sales data to the correct salesman etc etc.
>
> This sceario not only happens in the idea of sales, but in a wide variety of
> situations

Yeah this is a problem... and with many ways to solve it. It really
depends on your application and how you want to handle it.
For duplicate customers, you could identify each one uniquely as a
combination of a customer number, customer name, the name/ID of the
INITIAL agent who made the sale. I've also seen date of first contact
used in various combinations of these others to help uniquely identify
a customer.
Duplicate sales can be solved maybe by identifying a sale with a
customer (using the unique identifying criteria above) and a sales
agent and a date. Using a unique Sales Number could be hard because
they are all using disconnected devices.
Best advice: hire a consultant to help you with this ;)

AddThis Social Bookmark Button