A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

design problem



 
 
Thread Tools Display Modes
  #1  
Old August 11th, 2004, 05:13 PM
Daniel Bello Urizarri
external usenet poster
 
Posts: n/a
Default design problem

Hello: A design subject:
I have two tables that define a similar data set and another different data
set.
Table: CableCopper (id, code, type...., Caliber, Pairs)
Table: CableFiber (id, code, type...., Mark, Caract)
And one third table for which it is not important if the cable is Fiber or
Copper, but needs to guarantee referential integrity with some cable.
Table: Joint (idCable...)
Some suggestion for a robust design?



  #2  
Old August 11th, 2004, 07:39 PM
Tim Ferguson
external usenet poster
 
Posts: n/a
Default design problem

"Daniel Bello Urizarri" & wrote in
:

Table: CableCopper (id, code, type...., Caliber, Pairs)
Table: CableFiber (id, code, type...., Mark, Caract)
And one third table for which it is not important if the cable is
Fiber or Copper, but needs to guarantee referential integrity with
some cable. Table: Joint (idCable...)
Some suggestion for a robust design?


Sounds like a job for subtyping:

Cables(*IDNumber (autonumber),
Code, CableType)

CopperWires(*IDNumber (Long int), Calibre,
Pairs) // IDNumber FK referencing Cables

Fibres(*IDNumber (Long Int), Mark, Caract)
// IDNumber FK referencing Cables


There is no way in Access of guaranteeing that a particular Cable record
cannot have CopperWire and Fibres record. You could move up to SQL server,
where you can use triggers, or else use a bit of code on the form and some
clean-up queries to check for anomalies in order to make it a bit unlikely.

Hope that helps


Tim F

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Problem Occured Using C#&Access Xian Xu General Discussion 5 June 30th, 2004 10:12 PM
PGP problem Bob Henson General Discussion 0 June 27th, 2004 11:28 AM
Passport Logout Problem Chen qiang New Users 0 May 4th, 2004 09:26 AM
Help Microsoft? WORD11.ADM File Problem Line 818? Dwight Hutchinson New Users 2 May 3rd, 2004 08:25 PM
Word 2000 footnote problem: footnotes consistently too high (again) Lori Formatting Long Documents 2 May 1st, 2004 07:15 PM


All times are GMT +1. The time now is 04:17 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.