473,402 Members | 2,055 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,402 software developers and data experts.

Database Structure

I have a series of test results with each result consisiting of 10 test
conditions, 5 location conditions and then 3 test results. The table
looks a bit like this: (T = test condition, L = location condition, R =
test results)

T1 T2 .. T10 L1 L2 .. L5 R1 R2 R3
xx xx xx xx xx xx xx xx xx
xx xx xx xx xx xx xx xx xx
xx xx xx xx xx xx xx xx xx
xx xx xx xx xx xx xx xx xx
xx xx xx xx xx xx xx xx xx
xx xx xx xx xx xx xx xx xx
... .. .. .. .. .. .. .. ..
... .. .. .. .. .. .. .. ..
... .. .. .. .. .. .. .. ..
... .. .. .. .. .. .. .. ..
xx xx xx xx xx xx xx xx xx

I would like to have the test conditions, location conditions and test
results stored in separate tables. However, I am a complete beginner
with Access so could somebody please suggest what the best way to do
this would be?

Nov 13 '05 #1
3 1875
It seems that what you have is very good! Why do you want them in separate
tables?

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
<ja****@gmail.com> wrote in message
news:11*********************@c13g2000cwb.googlegro ups.com...
I have a series of test results with each result consisiting of 10 test
conditions, 5 location conditions and then 3 test results. The table
looks a bit like this: (T = test condition, L = location condition, R =
test results)

T1 T2 .. T10 L1 L2 .. L5 R1 R2 R3
xx xx xx xx xx xx xx xx xx
xx xx xx xx xx xx xx xx xx
xx xx xx xx xx xx xx xx xx
xx xx xx xx xx xx xx xx xx
xx xx xx xx xx xx xx xx xx
xx xx xx xx xx xx xx xx xx
.. .. .. .. .. .. .. .. ..
.. .. .. .. .. .. .. .. ..
.. .. .. .. .. .. .. .. ..
.. .. .. .. .. .. .. .. ..
xx xx xx xx xx xx xx xx xx

I would like to have the test conditions, location conditions and test
results stored in separate tables. However, I am a complete beginner
with Access so could somebody please suggest what the best way to do
this would be?

Nov 13 '05 #2
I want them in seperate tables because there is a lot of data and it is
part of a larger project. Each set of results is a 171 line text file.
The test conditions are the same for every line so there is a lot of
redundancy so by separating them into different tables I'm hoping to
make it easier to reduce the redundancy. I might do this using lookup
tables but I've heard bad things about them!

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #3
PC Datasheet wrote:
It seems that what you have is very good! Why do you want them in separate
tables?

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
<ja****@gmail.com> wrote in message
news:11*********************@c13g2000cwb.googlegro ups.com...
I have a series of test results with each result consisiting of 10 test
conditions, 5 location conditions and then 3 test results. The table
looks a bit like this: (T = test condition, L = location condition, R =
test results)

T1 T2 .. T10 L1 L2 .. L5 R1 R2 R3
xx xx xx xx xx xx xx xx xx
xx xx xx xx xx xx xx xx xx
xx xx xx xx xx xx xx xx xx
xx xx xx xx xx xx xx xx xx
xx xx xx xx xx xx xx xx xx
xx xx xx xx xx xx xx xx xx
.. .. .. .. .. .. .. .. ..
.. .. .. .. .. .. .. .. ..
.. .. .. .. .. .. .. .. ..
.. .. .. .. .. .. .. .. ..
xx xx xx xx xx xx xx xx xx

I would like to have the test conditions, location conditions and test
results stored in separate tables. However, I am a complete beginner
with Access so could somebody please suggest what the best way to do
this would be?



I can think of a number of reasons, including the ability to easily
tabulate and analyze test results.

You could set up three tables - test condition; location condition; and
test results. The test and location condition tables must have primary
keys. The test results table would have a compound primary key made up
of the primary keys of the test and location tables. Example
Test Results Table records:

Key: R1: R2: R3:
T1L1 xx xx xx
T1L2 xx xx xx
.. . .

This will work if all of the locations always will have the exactly the
same test conditions, and the number of test results are fixed.

In working with this structure you will need to develop queries with
outer joins in order to show locations and test conditions for which
results have not been entered, as well as those for which results have
been entered. This is easy to do.

You first create a union query of the location condition and test
condition table primary keys (look up UNION in Help).

You then create a new query that outer joins that union query to the
test results table. You create an outer join in query design by double
clicking on the line connecting the union query to the test results
table. This pops open the "Join Properties box", where you select the
"Include ALL records from (union query), and only those records from
(test results table) where the joined fields are equal". The resulting
query will show all test conditions and location conditions with their
results, with nulls for results in the locations for which results have
not been entered.

I think you'll find this structure to be more flexible and useful than
the one you currently have.
Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: bryja_klaudiusz[at]poczta[dot]fm | last post by:
Hi, How to copy database diagram (all data) to other server using only MSDE server and VS.Net Proffesional? I have no Enterprice manager. I have to move database (create on my machine) to my...
1
by: Srihari | last post by:
I'm trying to develop a tree structure using javascript. The node values of the tree are generating from a mysql table depending on login. The tree structure contains 3 sub levels. I developed...
346
by: rkusenet | last post by:
http://biz.yahoo.com/rc/040526/tech_database_marketshare_1.html Interesting to see that database sales for windows is more than Unix.
25
by: Colin McKinnon | last post by:
Hi all, There's lots of DB abstraction layers out there, but a quick look around them hasn't turned up anything which seems to met my requirements. Before I go off and write one I thought I'd...
3
by: josh.kuo | last post by:
Sorry about the subject, I can't think of a better one. I recently wrote some PHP classes that I think might be of interest to this group. Since I have been reaping the benefits of reading news...
1
by: Eric Sadoyama | last post by:
I have a database documentation question, but I am not even sure how to phrase it properly so I don't know where to start looking for answers. We are developing a database that is based on...
1
by: barkana | last post by:
Platform: ANSI C, RTOS Hi, I am trying to fread a database from a text file, and assign the database directly to the public structure below. In the text file first 20 chars is for SKU next 35 chars...
8
by: situ | last post by:
Hello all, i have Database1 and database2, is it possible to make database connection to database2 by running stored procedure on database1. Thanks and Regards Situ
9
by: Peter Duniho | last post by:
Is there a straightfoward API in .NET that allows for inspection of a database? That is, to look at the structure of the database, without knowing anything in advance about it? For example,...
5
rahulephp
by: rahulephp | last post by:
Hi there, can you please help me? i have data in array and i want to insert it in a single table. structure of table and array to be store is shown below: Please let me know how to store...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.