I got 0 responses to my "Opinions on db structure" post. That's painful.
Answer this time or I'll post it again... 8>)
Thanks.
=============== =============== =============== =======
I'm creating an Access 2003 field-based survey tool. The field users (50 of
them) submit survey results each week to a master db at the HQ.
Primary Key for field database is SurveyID, with a unique index on
PropertyID + SurveyDate.
When the field users submit the data, I'm going to send only the PropertyID
+ SurveyDate, and have the master db assign a new SurveyID for use within
that [Oracle] database.
So I'll end up with two SurveyIDs - one on the field user's system, and a
different one at HQ. I doubt anyone but me will ever see or use the
SurveyIDs.
Anyone think this is good or bad?
I could go with a composite PK of PropertyID + SurveyDate on both systems,
but this system will eventually have millions of records, so the single
SurveyID is more efficient.
Thanks 5 1374
DFS wrote: I got 0 responses to my "Opinions on db structure" post. That's painful.
Something about the title having to do with databases in a group like
this, way off :-)
Answer this time or I'll post it again... 8>)
Thanks.
=============== =============== =============== =======
I'm creating an Access 2003 field-based survey tool. The field users (50 of them) submit survey results each week to a master db at the HQ.
Primary Key for field database is SurveyID, with a unique index on PropertyID + SurveyDate.
When the field users submit the data, I'm going to send only the PropertyID + SurveyDate, and have the master db assign a new SurveyID for use within that [Oracle] database.
So I'll end up with two SurveyIDs - one on the field user's system, and a different one at HQ. I doubt anyone but me will ever see or use the SurveyIDs.
Anyone think this is good or bad?
I could go with a composite PK of PropertyID + SurveyDate on both systems, but this system will eventually have millions of records, so the single SurveyID is more efficient.
It's not so bad as long as your interface always uses the composite keys
for matching, the individual databases can use their own PK internally.
This would be the situation in most cases where two systems exchnange data.
You could implement some form of pool in the main database for the
remote users to use as PKs but as you already have a candidate key for
matching there's little point in complicating it further. I think Oracle
is big enough and ugly enough to handle a few million rows using a
composite key as opposed to a single key when importing a few rows from
your guy's laptop.
--
This sig left intentionally blank
DFS wrote: I got 0 responses to my "Opinions on db structure" post. That's painful.
Answer this time or I'll post it again... 8>)
I have one moment per day, normally, that I handle mail and news. Your
posts arrive together on my desk.
Sorry!
Trevor Best wrote: DFS wrote: I got 0 responses to my "Opinions on db structure" post. That's painful. Something about the title having to do with databases in a group like this, way off :-)
Answer this time or I'll post it again... 8>)
Thanks.
=============== =============== =============== =======
I'm creating an Access 2003 field-based survey tool. The field users (50 of them) submit survey results each week to a master db at the HQ.
Primary Key for field database is SurveyID, with a unique index on PropertyID + SurveyDate.
When the field users submit the data, I'm going to send only the PropertyID + SurveyDate, and have the master db assign a new SurveyID for use within that [Oracle] database.
So I'll end up with two SurveyIDs - one on the field user's system, and a different one at HQ. I doubt anyone but me will ever see or use the SurveyIDs.
Anyone think this is good or bad?
I could go with a composite PK of PropertyID + SurveyDate on both systems, but this system will eventually have millions of records, so the single SurveyID is more efficient.
It's not so bad as long as your interface always uses the composite keys for matching,
Right now the interface always uses the single key for matching.
the individual databases can use their own PK internally. This would be the situation in most cases where two systems exchnange data.
It's a one-way (field to HQ) data "exchange", and the field users won't be
downloading data.
You could implement some form of pool in the main database for the remote users to use as PKs but as you already have a candidate key for matching there's little point in complicating it further.
I agree. Don't need another source for the PK.
I think Oracle is big enough and ugly enough to handle a few million rows using a composite key as opposed to a single key when importing a few rows from your guy's laptop.
OK.
Thanks for your thoughts, Trevor.
"DFS" <no****@nospam. com> wrote in message news:<10******* ******@corp.sup ernews.com>... I'm creating an Access 2003 field-based survey tool. The field users (50 of them) submit survey results each week to a master db at the HQ.
Primary Key for field database is SurveyID, with a unique index on PropertyID + SurveyDate.
When the field users submit the data, I'm going to send only the PropertyID + SurveyDate, and have the master db assign a new SurveyID for use within that [Oracle] database.
So I'll end up with two SurveyIDs - one on the field user's system, and a different one at HQ. I doubt anyone but me will ever see or use the SurveyIDs.
Anyone think this is good or bad?
I could go with a composite PK of PropertyID + SurveyDate on both systems, but this system will eventually have millions of records, so the single SurveyID is more efficient.
I understand why you want to have a single field (SurveyID) as a
foreign key to other tables. Why not let the field users create the
SurveyID in the field using autonumber? If you are worried about
getting duplicate SurveyID's from different field users use the GUID
datatype (replication id) instead of random long integer. You could
also cobble together your own unique key from a combination of the
SurveyDate (maybe represented as # of days since 1/1/1900, easily
handled with 5 digits) and the PropertyID.
Bruce
Bruce
Bruce wrote: "DFS" <no****@nospam. com> wrote in message news:<10******* ******@corp.sup ernews.com>... I'm creating an Access 2003 field-based survey tool. The field users (50 of them) submit survey results each week to a master db at the HQ.
Primary Key for field database is SurveyID, with a unique index on PropertyID + SurveyDate.
When the field users submit the data, I'm going to send only the PropertyID + SurveyDate, and have the master db assign a new SurveyID for use within that [Oracle] database.
So I'll end up with two SurveyIDs - one on the field user's system, and a different one at HQ. I doubt anyone but me will ever see or use the SurveyIDs.
Anyone think this is good or bad?
I could go with a composite PK of PropertyID + SurveyDate on both systems, but this system will eventually have millions of records, so the single SurveyID is more efficient. I understand why you want to have a single field (SurveyID) as a foreign key to other tables. Why not let the field users create the SurveyID in the field using autonumber?
I do - it does - they do.
If you are worried about getting duplicate SurveyID's from different field users use the GUID datatype (replication id) instead of random long integer.
I was going to use a new, sequential integer in the HQ database. The
scripts that load the field data would ignore the field SurveyID, and the
database would assign a new SurveyID. Anyone querying the HQ database would
then use that ID.
You could also cobble together your own unique key from a combination of the SurveyDate (maybe represented as # of days since 1/1/1900, easily handled with 5 digits) and the PropertyID.
Not a bad idea.
Thanks This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: the wonderer |
last post by:
This is an elementary question, but I've not been able to find the
answer, so here goes:
I am developing a site using php. I have the html header information
in a file that I include in all the pages using the require_once
function.
That is, each page includes the line
<?require_once('PageStart.php')?>
|
by: R. Rajesh Jeba Anbiah |
last post by:
-----------------------------------------------------------------
This is the FAQ thread where the FAQ compilation project goes.
* If you wish to improve the contents, please copy the whole content,
fix it and then post it. When posting, please change the revision
number (increase by 1) in the subject line.
* If you want to comment, do it without changing the subject line.
* Do NOT add new question and answers here. Add here *only* after...
|
by: Janwillem Borleffs |
last post by:
-----------------------------------------------------------------
This is the FAQ thread where the FAQ compilation project goes.
* If you wish to improve the contents, please copy the whole content,
fix it and then post it. When posting, please change the revision
number (increase by 1) in the subject line.
* If you want to comment, do it without changing the subject line.
* Do NOT add new question and answers here. Add here only after...
|
by: Daniel Silva |
last post by:
Shriram Krishnamurthi has just announced the following elsewhere; it might
be of interest to c.l.s, c.l.f, and c.l.p:
http://list.cs.brown.edu/pipermail/plt-scheme/2005-April/008382.html
The Fate Of LAMBDA in PLT Scheme v300
or
Lambda the Ultimate Design Flaw
About 30 years ago, Scheme had FILTER and MAP courtesy of Lisp hackers
|
by: Phillip Parr |
last post by:
I've made a chat page using php and javascript. Which is nice. But I'd
really like the title bar to flash when a new message appears for users who
have minimised the window, like msn. Does any body know how do do this? The
only one's i've found animate the title text, which isn't what i'm going
for.
Thanks :)
| |
by: Matt |
last post by:
I'm attempting to load a form, query a database, and update a progress bar
on the same form. I want the form to load and activate/enable the form's
cancel button while the code continues to execute and the progress bar
updates. The user will be able to press the cancel button to stop
execution. Everything works fine, but I've noticed that when I call
thread.Abort, an exception is thrown: "Thread was being aborted."
Is there a better...
|
by: IsRaEl |
last post by:
Hello
I have a thread that start a really boring process of upload and
download a bunch of 1kb files on a server.
Since my internet connection SUCKS, during the download process, the
class that do the download just freeze..and, since it is ona thread,
the service just go on...
every time a download starts i save that in a global variable...
using that variable, i did some code that detects if the thread is
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |