Database Modeling for an Object

D

Daniel Crane

My company makes filters. And I have been having trouble on how to
approach the database design for our products. I'm hoping for some
suggestions...

Whenever a new filter is designed, and ready for production I want to
add a Product to our List of products. Now we have up to 117
different tests or specifications that we currently do here on the
finished product that the product must be able to meet.

I want a user to be able to:

a) Create a new product in my database.
b) Assign an undetermined number of tests to be performed on that
product.
For instance: Bubble Point Test, Thickness Test, Length
c) For the tests / specifications that have been applied to the newly
created product, I need to be able to put in a numeric value
For instance: Bubble Point Test (Min, Max), Thickness Test
(Min, Max), Length(Min)

The reason it needs to be dynamic is because some Filters require
certain test, while others don't.

I might have Filter A that needs test (or spec) A,B,C,D,E,F,G while
Product B only needs test (or spec) A, C, D, G.

Every Product will have a ProductNumber, ProductName, ProductCategory.
Once a "Product Master" (template) has been created, then it will be
possible to add Inventory. An inventory item will be added. A user
will "Add Inventory" and choose what type of product is being entered
by choosing a name from the existing list of approved products.

That inventory will be associated with the "Product Master". Then
that inventory item will be given it's appropriate tests and that data
will be entered into the database. Once the inventory item's data is
properly entered it's data will be verified against it's "Product
Master" to see if all the data falls within the limits.

I would really appreciate whatever help you can offer. Perhaps it's
just some small ideas that will lead me in the right direction. But
the structure is killing me. Thanks for the time you took to read
this, and for any posts you've made regarding this subject!

Daniel
 
R

Ross Grayum[MSFT]

I can't give you a quick answer on how to structure your database schema to
meet these needs, but I can point you to the Object Role Modeling (ORM)
tool within Visio Enterprise Archhitect. It will allow you to enter
english facts (i.e. Product must pass zero or more SpecificationTest ).
There is a learning curve associated to using ORM, but If your serious
about modeling your database schema this is a good way to go. To get
stated Start Visio (Enterprise Architect), create a new ORM Source Model
(File | New | Database >> ORM Source Model). For information about Object
Role Modeling, see Conceptual Schema and Relational Database Design, 2nd
edition, by Terry Halpin (WytLytPub, Bellevue WA, USA, 1999), and visit
http://www.orm.net/, the official Web site for conceptual data modeling.
 
D

Daniel Crane

Thanks for the info Matt. I have the ability to create ORM designs,
but they obviously won't be generating any code for me, which is fine.
And as far as simple relational databases and using primary keys and
foreign keys to relate information I understand those concepts for the
most part. It is just this specific scenario that is giving me
trouble. Thanks again.

Daniel
 
C

Chang Oh [MSFT]

The ability to do ORM under Visio Professional is just for diagramming while Visio shipped with Visual Studio includes a deep ORM solution which can
automatically map to relational model and generate SQL database.

--

Chang Oh
Visual Studio Enterprise Frameworks and Tools

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
--------------------
From: "Daniel Crane" <[email protected]>
References: <[email protected]> <UK1Uqw#[email protected]> <uxRIZ2GUDHA.2308
@TK2MSFTNGP12.phx.gbl> <[email protected]>
Subject: Re: Database Modeling for an Object
Date: Thu, 24 Jul 2003 10:56:42 -0700
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <[email protected]>
Newsgroups: microsoft.public.visio.database.modeling
NNTP-Posting-Host: ip-216-36-104-164.dsl.iad.megapath.net 216.36.104.164
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.visio.database.modeling:2959
X-Tomcat-NG: microsoft.public.visio.database.modeling

Thanks for the info Matt. I have the ability to create ORM designs,
but they obviously won't be generating any code for me, which is fine.
And as far as simple relational databases and using primary keys and
foreign keys to relate information I understand those concepts for the
most part. It is just this specific scenario that is giving me
trouble. Thanks again.

Daniel
 
D

Daniel Crane

Wish I had that version, or at least wish I could afford it...

Daniel


Chang Oh said:
The ability to do ORM under Visio Professional is just for
diagramming while Visio shipped with Visual Studio includes a deep ORM
solution which can
automatically map to relational model and generate SQL database.

--

Chang Oh
Visual Studio Enterprise Frameworks and Tools

This posting is provided "AS IS" with no warranties, and confers no
rights. Use of included script samples are subject to the terms
specified at
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top