473,387 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Exchanging data between branches - Database Design Help

2
Hey All!

I am currently designing a database model for (at first sight) a simple order entry program. The problem I'm currently facing is the exchange of data between the databases of each branch of the company. The company consists of five branches where each the same program and, hence, same database is installed. The data between these branches have to be exchanged (i.e. customers, users).

Now my question is, how should I design the database that it will be possible for exchanging data between the branches and still the primarykey remains unique and references to this primarykey still work (i.e. entity Order refers to a specific Customer)?

For example with the entity Customer and its primarykey CustomerID. Branch A add customers in its database, and also branch B add customers in its database. Both databases contains CustomerID of value 2, but the customer of each database with this ID represents a different customer (sounds logical, right?). How to exchange the data from branch A to branch B?

One limitation I have to add, there's no high-speed connection between the branches. Let say the exchange should still be done with a dial-up 56k modem (yes, it sucks, i know, but I am currently doing a project in a third world country... :o )

I hope I described my problem clear, please let me know if you need more information... thanks in advance!
Jun 17 '06 #1
3 1662
sashi
1,754 Expert 1GB
Hi Alwin,

i think i clearly understood whatever ur concern is.. well.. do correct me if am wrong.. redundancy?? is that is my fren??

u mentioned that u need to install same front-end as well as the back-end (database) on each machine on each branch.. rite?? well.. my suggestion is..

since ur thinking of performing the data exchange over an internet line which is connected to each branch.. since redundancy is the main concern here.. why don't we look or take a diff approach which will reduce the work burden.. what am trying to say is n ask is.. 1st of all have u tried looking at other options as well?? maybe like the development language itself?

confused ah?? not yet my fren.. you know what i would do if i were u?? i would stop thinking about normalizing the database design instead.. well.. since we have an internet connection present here.. i would make a web based system my choice..

why not thinking of designing a web based system.. maybe .asp/.php.. i these case.. it will reduce your burden when it comes to troubleshooting your application.. take a moment to think.. you have 5 branches to look after.. what will happen at the end of the day?? you will be tied up btw these brances my fren..

all these issues can be by passed when working with web based application.. sisnce you have 5 branches.. am sure u must have an HQ somewhere.. rite?? why not you place the master database at you HQ and let all your clients (branches) to access the database.. think abt it?? wouldn't it save you alot of valuable time??

the only thing you have to concern it the database itself.. create a relational database will all the primary key n secondary key correct n it should work fine..

well.. this is my suggestion thou.. but it the meantime i'll try to find some solutions for your question above.. maybe it's time to pick-up my phone receiver to call few of my old frens to get an idea..

give it a tot.. to me it makes sense.. how abt you?? good luck to u my fren..
Jun 17 '06 #2
Alwin
2
Hey Sashi,

Thanks for sharing your thought, but I don't think it would be a practical solution for having the web-based system. This will cost me a huge drop in performance (which is not affordable) due to the really slow internet connection. It will take the clients a couple of seconds every time to insert/update/delete a record. So the only option in this case should be a separate database at each client and these should replicate every hour or so...

There's indeed a HQ which will contain the master database. But I want to replicate all the customers / users etc etc across the other databases as well...

Thanks again...
Jun 18 '06 #3
sashi
1,754 Expert 1GB
Hi Alwin,

emm.. let me suggest using the Remote Database Object (RDO) method.. when it comes to replicating non-duplicate record pls use the DISTINCT keyword in your SELECT statement..

hope the above method works and good luck to u my fren..
Jun 18 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: cleveralex1212 | last post by:
Sorry to disturb. I'm truly a beginner in C++ and my knowledge of it is really not much. I've been facing a serious problem during these few days. Let me describe my situation as clearly as I can...
2
by: Mike | last post by:
Hi I have been tasked with converting my pulp and paper mills weekly projected and actual contractor hrs excel spreadsheet into a an Access 97 database. So far my design has been to use a...
1
by: Bob | last post by:
I have been asked to modify an existing Access database so that it can update a MySQL databse in head office from multiple MS Access databases in branches. The idea is that when the HO database is...
0
by: Marc DVer | last post by:
I am at kind of a loss on how to design a certain database project I am working on. Basically, we have a proprietary program with a standard backend (though we do not have direct write access to...
8
by: rAinDeEr | last post by:
Hi, I have a table with the following 2 Fields - one is the description name and the second is its description to be stored in a table. description name description...
10
by: Will Honea | last post by:
I have a data set which I need to analyze but I am having a problem figuring out a structure for the database - or whether there are better ways of attacking the problem. The base data set is a...
4
by: enizag | last post by:
I have a problem which needs a sloution, I have a database of a phone bill which contains all calls made from 100 different branches, this is split down to if the call was local "L", national "N" and...
1
by: GPD | last post by:
I thought I had done this before but cant see a way how. Am sure I once opened a table and amended some data. Anyone know if possible or how, any permissions needed from 10G EM. PS I know...
12
lifeisgreat20009
by: lifeisgreat20009 | last post by:
I am a newbie to Struts and JSP...I have been working on the code below for 5 hours now..I googled a lot but couldn't get much help so finally I am here.. Hoping of getting my problem solved. Please...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.