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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
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 |