R
Redbeard
The subject line stinks, but I couldn't think of anything better.
I have data that I need in two different forms, and I think I'm stuck
keeping it in two different tables and fighting to keep both
up-to-date. But I thought I'd put the problem out here in hopes that
someone will show me a better way.
I'm creating a database to help keep track of textbooks at my high
school. Some courses have more than one textbook - one actually has
seven. There is also at least one instance where two different courses
use the same text (though they teach different parts of it).
I have a table called CourseTextsTBL that has the following fields
(CourseName [key], Text1ISBN, Text2ISBN ... Text7ISBN) where ISBN is
the textbook's ISBN number. This links to a separate table which uses
the ISBN number for the key and has data about the text (i.e.
publisher, copyright, etc.). I use CourseTextsTBL for the majority of
the work done in the database, and for most courses, the only field
(other than the key field) that contains data is Text1ISBN.
But once in a while, I need the data listed with two fields (CourseName
& ISBN). Since some books get used in two different courses, and since
some courses use multiple books, both fields will have duplicates and
neither field could be a key. However, the combined fields can be the
key, since the combination would always be unique. Or I could probably
get by without a key since there would never be more than a few dozen
records.
I've been racking my brain trying to figure out if there is a way to
use a query to get the latter dataset from the first table. I've all
but concluded that it can't be done, and I'm stuck maintaining two
tables with the same data in them. But if anyone can help me see a
better way ...
I have data that I need in two different forms, and I think I'm stuck
keeping it in two different tables and fighting to keep both
up-to-date. But I thought I'd put the problem out here in hopes that
someone will show me a better way.
I'm creating a database to help keep track of textbooks at my high
school. Some courses have more than one textbook - one actually has
seven. There is also at least one instance where two different courses
use the same text (though they teach different parts of it).
I have a table called CourseTextsTBL that has the following fields
(CourseName [key], Text1ISBN, Text2ISBN ... Text7ISBN) where ISBN is
the textbook's ISBN number. This links to a separate table which uses
the ISBN number for the key and has data about the text (i.e.
publisher, copyright, etc.). I use CourseTextsTBL for the majority of
the work done in the database, and for most courses, the only field
(other than the key field) that contains data is Text1ISBN.
But once in a while, I need the data listed with two fields (CourseName
& ISBN). Since some books get used in two different courses, and since
some courses use multiple books, both fields will have duplicates and
neither field could be a key. However, the combined fields can be the
key, since the combination would always be unique. Or I could probably
get by without a key since there would never be more than a few dozen
records.
I've been racking my brain trying to figure out if there is a way to
use a query to get the latter dataset from the first table. I've all
but concluded that it can't be done, and I'm stuck maintaining two
tables with the same data in them. But if anyone can help me see a
better way ...