473,394 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

database-design-inventory-different-attributes

Hi all,

I am trying to design a database in access 2002. I have multiple category of
items such as computers which may include laptop, server, pc...all of these
items have different attributes, similarly printers with sub categories
deskjet, laser, line, etc also have diff attributes...like that I have
multiple items in my inventory (around 30 items) all with different
attributes. After going through normalisation I guess I need to have
separate tables for each laptop, Server, Computer etc OR have a one to one
relation with item category such as computers 1 to 1 laptop , servers. By
doing that I will have a lot of tables which I guess is not the best way to
do this.
I have to assign them to customers which is related through a many to many
relation...junction table .tbltransactions.... with tblcategory at present
and will be choosing multiple items which might include printers, computers,
routers, switches, etc.
Please suggest if there is a best practise for doing this OR anyway I can
simplify the table design. Thanks to all in advance.
Awaiting eagerly for your response.
--
Regards,
B


Nov 13 '05 #1
4 4819
"Burghew" <no****@sorry.com> wrote
I am trying to design a database in access 2002. I have multiple category
of
items such as computers which may include laptop, server, pc...all of
these
items have different attributes, similarly printers with sub categories
deskjet, laser, line, etc also have diff attributes...like that I have
multiple items in my inventory (around 30 items) all with different
attributes. After going through normalisation I guess I need to have
separate tables for each laptop, Server, Computer etc OR have a one to one
relation with item category such as computers 1 to 1 laptop , servers. By
doing that I will have a lot of tables which I guess is not the best way
to
do this.
I have to assign them to customers which is related through a many to many
relation...junction table .tbltransactions.... with tblcategory at present
and will be choosing multiple items which might include printers,
computers,
routers, switches, etc.
Please suggest if there is a best practise for doing this OR anyway I can
simplify the table design. Thanks to all in advance.

equipment
=======
equipment_id
eq_cat_id (fk)
eq_type_id (fk)
eq_serial_no
eq_model

lu_eq_category
=========
eq_category_id
eq_cat_desc {printer, computer, monitor, speakers}

lu_eq_type
=======
eq_type_id
eq_cat_id (fk)
eq_type_desc { ink, laser, laptop, server, LCD, CRT }
On a form, first choose an eq_cat_id from a listbox or combox that uses
lu_category_id as the lookup table.
Then requery the second listbox/combobox, which has as its rowsource a
query like "SELECT eq_type_id, eq_type_des FROM lu_eq_type WHERE eq_cat_id="
& Me.cboCategory"

--
Darryl Kerkeslager

Power corrupts.
Absolute power corrupts absolutely.
Knowledge is power.
See www.adcritic.com/interactive/view.php?id=5927
Nov 13 '05 #2
Just a suggestion because things have changed since I designed a similar Db
where we sold a client a system, and networks were uncommon.
If I were doing it now, I think I would have
A TblEquipment:-EqipmentID, TypeID(FK), Serial,
TblTypes:-TypeID, Type e.g. Computer, Printer, Router
TblCategories:-CategoryID, Category, TypeID e.g. LaserJet, Laptop
TblJoinEqipmentCategory:-EqipmentID, CategoryID but a check that the
TypeID is consistent, i.e you can have a LaserJet printer, but you can't
have a LaserJet computer.
This should allow you to build a piece of equipment and show it's
categories.
Then as you surmised you have a TblCustomer, CustomerID, Customername etc
and a JoinCustomerEquipment with date, Price etc

Idle thoughts

Phil

"Burghew" <no****@sorry.com> wrote in message
news:d0*********@news-dxb.emirates.net.ae...
Hi all,

I am trying to design a database in access 2002. I have multiple category
of
items such as computers which may include laptop, server, pc...all of
these
items have different attributes, similarly printers with sub categories
deskjet, laser, line, etc also have diff attributes...like that I have
multiple items in my inventory (around 30 items) all with different
attributes. After going through normalisation I guess I need to have
separate tables for each laptop, Server, Computer etc OR have a one to one
relation with item category such as computers 1 to 1 laptop , servers. By
doing that I will have a lot of tables which I guess is not the best way
to
do this.
I have to assign them to customers which is related through a many to many
relation...junction table .tbltransactions.... with tblcategory at present
and will be choosing multiple items which might include printers,
computers,
routers, switches, etc.
Please suggest if there is a best practise for doing this OR anyway I can
simplify the table design. Thanks to all in advance.
Awaiting eagerly for your response.
--
Regards,
B

Nov 13 '05 #3
Read Rebecca Riordan's article at Access web on subclassing in Access.
One of the reasons VB.NET *should* be better - it can do real
subclassing and all the inheritance and all that. You might want to
look at Peter Vogel's book too (Object and component handbook).

http://www.mvps.org/access/tables/tbl0013.htm

Nov 13 '05 #4
<pi********@hotmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
Read Rebecca Riordan's article at Access web on subclassing in Access.
One of the reasons VB.NET *should* be better - it can do real
subclassing and all the inheritance and all that. You might want to
look at Peter Vogel's book too (Object and component handbook).


Yes, but none of the object stuff works with sql server...so what good does
that do? If you use ms-access, or you use c#.net, they both still have to
use sql statements to grab the data from JET, or sql-server. The issues of
using .net will NOT effect a correctly formed and normalized database (and,
I not suggesting that you are saying otherwise, but the issues of a OO
programming languages has little, or nothing to do with the fact that using
JET (ms-access), Oracle, or ms-sql requires a good normalized design here,
and the approach here does not differ).
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com
http://www.members.shaw.ca/AlbertKallal
Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Roderik | last post by:
Hi, When developing a website in general when should I choose to put content in a database. For menu options, settings, and listings like products it seems to be clear for me to put them in. But...
0
by: Cherrish Vaidiyan | last post by:
hello, Thanx for the suggestions on my Listener query. Now i am performing a simple work.. STANDBY DATABASE creation. I have followed the instraction from Oracle 9i Release 1 documentation...
0
by: Cherrish Vaidiyan | last post by:
sir, The following are the steps that i followed in setting up standby database on Red hat Linux 9. i am using Oracle 9i. i have followed the steps in this site : ...
6
by: Marvin Libson | last post by:
Hi All: I am running DB2 UDB V7.2 with FP11. Platform is Windows 2000. I have created a java UDF and trigger. When I update my database I get the following error: SQL1224N A database...
8
by: Kamlesh | last post by:
Hi, How do I know the physical database path of a database. When I goto the DB2INSTANCE users's directory (/home/db2inst1), I see following folders: /db2inst1/NODE0000/SQL00001...
1
by: pintur | last post by:
The message is: SQL1036C Errore di I/O durante l' accesso al database. SQLSTATE=58030 what is the proble? what for restore tables? thanks
7
by: PC Datasheet | last post by:
Looking for suggestions ---- A database was designed for a national automobile inspection program. In it's simplest form, the database has two tables: TblOwner OwnerID <Year/Make/Model owned...
5
by: HSP | last post by:
hi. i need to restore an old database. The db was backed up using a DLT drive, using 2 volumes. The content for the tapes was copied to file onto Solaris machine using rsh and dd (for backup...
0
by: mel_apiso | last post by:
Hi, after uncatalog one database, and catalog again with other name, if I try to connect with this database, everything is ok, but list applications only show me the connection with the...
2
by: Scott Jones | last post by:
Hello, In an attempt to save disk space, I went in and gzipped all of the log files for my database running DB2 version 7.2 . This resulted in the database being marked bad because a log file...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.