Re: A calculated field and a Master/Detail relationship
From: AlanGLLoyd (alanglloyd_at_aol.com)
Date: 12/29/03
- Next message: AlanGLLoyd: "Re: Calculate field offset in a typed record"
- Previous message: AlanGLLoyd: "Re: Program Error: *.exe has generated errors ... - Win 2K on target machine"
- In reply to: Frank: "A calculated field and a Master/Detail relationship"
- Next in thread: Frank: "Re: A calculated field and a Master/Detail relationship"
- Reply: Frank: "Re: A calculated field and a Master/Detail relationship"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Dec 2003 08:52:05 GMT
In article <9byHb.13458$VW.639124@news3.tin.it>, "Frank" <iuesei@virgilio.it>
writes:
>Is there a reason why the Master/Detail relationship doesn't work in this
>case or did I made something wrong which I don't realize ?
>
Apart from other suggestions there is an issue with the way you have
implemented the relationship between books and authors which may affect you.
While authors have many books, some books have many authors. The traditional
way to implement this "many-to-many" relationship is to have an AuthorBook
table which contains records relating individual authors to individual books by
storing the BookId and the AuthorId as appropriate. Then this table is related
in a one-to-many relationship to both the Authors and the Books tables using
the appropriate field of each table (BookId to Books and AuthorId to Authors).
OTOH you may never record books which have many authors, or the accuracy of
your database may be fulfilled by using only the first author.
Or as Bruce has suggested, use a query.
Alan Lloyd
alanglloyd@aol.com
- Next message: AlanGLLoyd: "Re: Calculate field offset in a typed record"
- Previous message: AlanGLLoyd: "Re: Program Error: *.exe has generated errors ... - Win 2K on target machine"
- In reply to: Frank: "A calculated field and a Master/Detail relationship"
- Next in thread: Frank: "Re: A calculated field and a Master/Detail relationship"
- Reply: Frank: "Re: A calculated field and a Master/Detail relationship"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|