S
shadowsong
i'm trying to set up a database tracking order history and order
receipts for inventory items, but i'm not sure what should be in each
table, what should be in the link table, and what kind of key should be
used in each table.
each item is identified by either IJ number or IA number. not all items
have both numbers, but all have at least one. some parts are ordered
under IA number and received under IJ number, or vice versa. some items
are also referred to by multiple IJ or IA numbers, but i think i will
ignore that for now as i'm confused enough already. i would also like
to keep track of obsolete item numbers so they can be cross referenced
to a valid current item number
each item has multiple orders, each order contains multiple items.
unique order lines can be identified by an IA/IJ number + an order
number. date and quantity also needs to be recorded.
each unique order line can be received on more than one invoice, and
each invoice can contain the same order or item number (but not
order+item number) multiple times. quantity received and invoice date
is also recorded on this table.
i think i need to use compound keys as identifiers, but i haven't been
able to find much information on how they work in previous versions of
access, and none about using them in access 2003. i have a lot of
repeated information, but i can't figure out how to remove any of it
without losing identifying information.
here's my first stab at setting up tables, with possible compound keys
in brackets. all matching column names would be linked across tables:
[IANumber IJNumber] - link table. contains only part numbers.
[IANumber IJNumber Order] OrderDate OrderQty - order table.
[IANumber IJNumber Order Invoice] InvDate InvQty - receipts table.
this is my first time setting up a database, so i'm not sure i'm going
about it the most logical way. do i need more (or fewer) tables? is
there an easier way to set up the tables or the keys? have compound
keys been replaced by some other kind of key?
any websites or books i should take a look at?
receipts for inventory items, but i'm not sure what should be in each
table, what should be in the link table, and what kind of key should be
used in each table.
each item is identified by either IJ number or IA number. not all items
have both numbers, but all have at least one. some parts are ordered
under IA number and received under IJ number, or vice versa. some items
are also referred to by multiple IJ or IA numbers, but i think i will
ignore that for now as i'm confused enough already. i would also like
to keep track of obsolete item numbers so they can be cross referenced
to a valid current item number
each item has multiple orders, each order contains multiple items.
unique order lines can be identified by an IA/IJ number + an order
number. date and quantity also needs to be recorded.
each unique order line can be received on more than one invoice, and
each invoice can contain the same order or item number (but not
order+item number) multiple times. quantity received and invoice date
is also recorded on this table.
i think i need to use compound keys as identifiers, but i haven't been
able to find much information on how they work in previous versions of
access, and none about using them in access 2003. i have a lot of
repeated information, but i can't figure out how to remove any of it
without losing identifying information.
here's my first stab at setting up tables, with possible compound keys
in brackets. all matching column names would be linked across tables:
[IANumber IJNumber] - link table. contains only part numbers.
[IANumber IJNumber Order] OrderDate OrderQty - order table.
[IANumber IJNumber Order Invoice] InvDate InvQty - receipts table.
this is my first time setting up a database, so i'm not sure i'm going
about it the most logical way. do i need more (or fewer) tables? is
there an easier way to set up the tables or the keys? have compound
keys been replaced by some other kind of key?
any websites or books i should take a look at?