The Artima Developer Community
Sponsored Link

Design Forum
DataBase Concepts

3 replies on 1 page. Most recent reply: Dec 7, 2005 7:24 AM by Charles Hammond

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
James Janan

Posts: 1
Nickname: mechboard
Registered: Jul, 2005

DataBase Concepts Posted: Jul 28, 2005 2:53 PM
Reply to this message Reply
Advertisement
Can anyone help me explain the following questions:

How do you determine the data requirements for a database? Are there any best practices?

How important are field properties? How do we determine them?

How important are business rules when establishing attributes properties?


Dhrubo

Posts: 32
Nickname: dhrubo
Registered: Mar, 2003

Re: DataBase Concepts Posted: Sep 21, 2005 5:24 AM
Reply to this message Reply
These are very generic questions can you please elaborate provide more details

Franco Martinig

Posts: 5631
Nickname: martinig
Registered: Apr, 2003

Re: DataBase Concepts Posted: Oct 4, 2005 3:28 AM
Reply to this message Reply
There is a good article on database design with UML in the Methods & Tools archive page: "Database Modelling in UML". This article offers a step by step approach to transform a UML object-oriented class model in a purely relational database.

http://www.methodsandtools.com/archive/archive.php?id=9

You will find plenty of documentation on UML design on the Web.

Charles Hammond

Posts: 4
Nickname: ceh4702
Registered: Dec, 2005

Re: DataBase Concepts Posted: Dec 7, 2005 7:24 AM
Reply to this message Reply
A Database is designed to fullfill business requirements or solve business problems.

A major issue is the output of the database is most important. You have to get the information out of the database i.e. reports, displays, extract files. So the database is disigned after you know what kind of information has to be extracted.

Some poor sap has to write a querry, design an interface, etc.

The first rule in design is that the user or the owner will never tell you all of the requirements. You have to dig this information out of people's heads and the technical requirements.

Some designers make a general design or a logical model which has to be based on the business requirements but not too specific. Then they identify the keys for the Physical design. And then after that the entities that might be required.

You can get rather involved with this and map out each process with sub-process steps. The process is like a design for a business requirement Like taking an order, Or writing a paycheck.

The Entity type formatting has a lot of options. It includes the obvious like number or character. Dates are often stored as just a number. Most databases have their own date type. This may be a certain number of seconds or minutes or days since a set date. So they have this internal stored version and the version that is displayed may be a conversion like mm/dd/yy or time or both or any combination.

A field may be numbered from 1 and increase by one every time you add another row. This can be handy for keys. There may be a default value or the element may allow no value (Null). The fields that are related may be forced to updated their relationships or require there to be a relationsip. For something like a social security number or a phone number there may be a specific edit pattern or a conversion string for display. Take a decimal number. Accounting may require that school credits be stored with 5 decimal places for computations and rounding, but you may only want to display 2 decimals. You have to know this if you ever write a program or do a comparison. Sometimes there is no decimal stored,but it is implied.

OK enough of that. Usually the format of the data is cataloged in the Data Dictionary or multiple dictionaries. This way when some form is designed the system knows what the correct format to display is. This is the main thing about a database it the database reads the dictionary and then instantly knows what kind of data it is. You dont have to write some long description of the data format just to output a simple report (In Theory).

Every database has its own data types or list of data types and they tend to want to use standard data types that are for the most part interchangeable. This is so the ODBC or data exchange drivers will be able to read the data and share it with some other application. i.e. download to Excel to do a pivot table.

Flat View: This topic has 3 replies on 1 page
Topic: Some tutorials in "FAQ" area Previous Topic   Next Topic Topic: General Databse Design Query

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use