Business Analysis. Introduction to data modeling essay

Category: Business Analysis, Data
Last Updated: 16 Apr 2021
Essay type: Analysis
Pages: 11 Views: 329

Before you sit down in front of the keyboard and start creating a database application, it is critical that you take a step Introduction: The importance of conceptual 3. 1. 1. 1 Entities and attributes What is data modeling?

A data model is a simply a diagram that describes the most important "things" in our business environment from a data-centric point of view. To illustrate, consider the simple RED shown in Figure 3. 1 . The purpose of the diagram is to describe the relationship between the data stored about products and the data stored about the organizations that supply the products. FIGURE 3. 1: An RED showing a relationship between products and suppliers. The rectangles in Figure 3. 1 are called entity types (typically shortened to "entities") and the ovals are called attributes.

The entities are the "things" in the business environment about which we want to store data. The attributes provide us with a means of organizing and structuring the data. For example, we need to store certain information about the products that we sell, such as the typical selling price of the product ("Unit price") and the quantity of the product currently in inventory ("Sty on hand"). These pieces of data are attributes of the Product entity. It is important to note that the precise manner in which data are used and processed within a particular business application is a separate issue from data modeling.

Order custom essay Business Analysis. Introduction to data modeling essay with free plagiarism report

feat icon 450+ experts on 30 subjects feat icon Starting from 3 hours delivery
Get Essay Help

For example, the data model says nothing about how the value of "Sty on hand" is changed over time. The focus in data modeling is on capturing data about the environment. You will learn how to change this data (e. G. , process orders so that the inventory values are updated) once you have mastered the art of database design. Product Unit price Sty on hand Product Entity supplied by Cardinality Attributes Supplier Relationship Name Address A data modeled assumes that if the right data is available, the other elements of the application will fall into place effortlessly and wonderfully.

For now, this is a good working assumption. An Introduction to data enameling 1 1 2 Notation Tort relationship Introduction: The importance of conceptual environment in which your wholesale company operates. However, it is easy to imagine a different environment in which each product is supplied by multiple suppliers. For example, many suppliers may carry a particular brand of wire whisk. When you run out of whisks, it is up to you to decide where to place your order. In other words, it is possible that a many-to-many relationship exists between suppliers and products.

If multiple supplier exist, attributes of the product, such as its price and product number may vary from supplier to supplier. In this situation, the data requirements of a many-tomato environment are slightly more complex than those of the one-to-many environment. If you design and implement your database around the one-to-many assumption but then discover that certain goods are supplied by multiple suppliers, much effort is going to be required to fix the problem. In addition to entities and attributes, Figure 3. 1 shows a relationship between the two entities using a line and a diamond.

The relationship construct is used?not surprisingly?to indicate the existence or absence of a relationship between entities. A crows foot at either end of a relationship line is used to denote the cardinality of the relationship. For example, the crows foot on the product side of the relationship in Figure 3. 1 indicates that a particular supplier may provide your company with several different products, such as bowls, spatulas, wire whisks and so on. The absence of a crow's foot on the supplier side indicates that each product in your inventory is provided by a single supplier. Thus, the relationship in Figure 3. Indicates that you always buy all your wire whisks from the same company. 3. 1. 1. 3 Modeling assumptions The relationship shown in Figure 3. 1 is called one-to-many: each supplier supplies many products (where many means "any number including zero') but each product is supplied by one supplier (where "one" means "at most one"). The decision to use a one-to-many relationship reflects an assumption about the business Herein lies the point of drawing an RED: The diagram makes your assumptions about the relationships within a particular business environment explicit before you start building things.

The role of the modeled 3. 1. 1. 4 In the environment used in these tutorials, you are the user, the designer, and the implementer An introduction to data modeling of the system. In a more realistic environment, however, these roles are played by different individuals (or groups) with different Docudramas Ana prolepses. For example, a common stereotype AT Implementers (programmers, database specialists, and so on) is that they seldom leave their cubicles to communicate with end-users of the software they are writing.

Similarly, it is generally safe to assume that users have no interest in, or understanding of, low- level technical details (such as the cardinality of relationships on Reds, mechanisms to enforce referential integrity, and so on). Thus, it is up to the business analyst to bridge the communication gap between the different groups involved in the construction, use, and administration of an information system. As a business analyst (or more generally, a designer), it is critical that you walk through your conceptual models with users and make sure that your modeling assumptions are appropriate.

In some cases, you may have to examine sample data from the existing computer- based or manual system to determine whether (for instance) there are any products that are supplied by multiple suppliers. At the modeling stage, making changes such s converting a one-to-many relationship to a many-to-many relationship is trivial? all that is required is the addition of a crows foot to one Introduction: The importance of conceptual end of the relationship, as shown in Figure 3. 2. In contrast, making the same change once you have implemented tables, built a user interface, and written code is a time-consuming and frustrating chore.

FIGURE 3. 2: An RED for an environment in which there is a many-to-many relationship between products and suppliers. Product Unit price Sty on hand The addition of a second crows foot transforms the one-to-many relationship into a any-to-many relationship. Supplier Generally, you can count on the lox rule of thumb when building software: the cost of making a change increases by an order of magnitude for each stage of the systems development lifestyle that you complete. Introduction: The importance of conceptual 3. 1. 2. 1 Entities 3. 1 . Core Mellon constructs Ana notation Data meddlers typically adopt a set of notational conventions so that their diagrams are consistent. For example, large IT organizations and consultancies typically adopt a methodology?a set of tools and procedures for applying the tools that specifies he notation used within the organization. Enforcing standardization in this way facilitates teamwork on large projects. Similarly, if a computerized software engineering (CASE) tool is used for conceptual modeling and design, notational conventions are often enforced by the software.

What follows is a brief summary of the notational conventions that I use when drawing Reds. Keep in mind, however, that Reds are first and foremost a tool for communication between humans. As such, the precise notation you use is not particularly important as long as people can read and understand the diagrams. With experience, you will come to realize that differences in the shapes of the boxes and lines have little effect on the core concepts of data modeling. Entities are drawn as rectangular boxes containing a noun in singular form, as shown in Figure 3. . FIGURE 3. 3: An entity named "Customer". Customer You will see later that each entity you draw ultimately becomes a table in your database. You might want to keep this transformation from entity to table in mind when selecting the names of your entities. For example, your entity names should be short but descriptive. 3. 1. 2. Relationships A relationship between entities is drawn as a line bisected by a diamond. The diamond contains a verb (or short verb phrase) that describes the nature of the relationship between the entities, as shown in Figure 3. 4.

Named relationships are used to make the Reds more readable. However, unlike entity names, relationship names never show up in the final database. Consequently, it does not really matter how you label your relationships, as long It can be argued that the term "method" is grammatically preferable. In Europe, for example, the term "method" tends to be favored. Introduction: The importance of conceptual Generally, Reds make certain assumptions about the reader's knowledge of the underlying business domain. FIGURE 3. 4: A relationship named "buys". Duds as the labels make the diagram easier to interpret.

To illustrate, consider the relationship between products and suppliers shown in Figure 3. 1 . The relationship is described by the verb phrase "supplied by'. Although one could have opted for the shorter relationship name "has" instead, the resulting diagram (e. G. , "Supplier has product") would be more difficult for readers of the diagram to interpret. 3. . 2. 3 Relationship direction A notational convention supported by some CASE tools is to require two names for each relationship: one that makes sense in one direction (e. G. , "is supplied by'), and another that makes sense in the opposite direction (e. G. , "supplies").

Although double-naming may make the diagram easier to read, it also adds clutter (twice as many labels) and imposes an additional burden on the modeled. Cardinality 3. 1 . 2. 4 One issue that sometimes troubles neophyte data meddlers is that the direction of the relationship is not made explicit on the diagram. Returning to Figure 3. , it is obvious to me (since I drew the diagram) that the relationship should be read: "Product is supplied by supplier. " Reading the relationship in the other direction ("Supplier is supplied by product") makes very little sense to anyone who is familiar with the particular problem domain.

As discussed in Section 3. 1. 1. 2, the cardinality of a relationship constrains the number of instances of one entity type that can be associated with a single instance of the other entity type. The cardinality of relationships has an important impact on number and structure of the tables in the database. Consequently, it is important to get the cardinality right on paper before starting the implementation. An introduction to data modeling There are three fundamental types of cardinality in Reds: One-to-many ? You have already seen an example of a one-to-many relationship in Figure 3. 1 .

You will soon discover that onto-many relationships are the bread and butter of relational databases. One-to-one ? At this point in your data modeling career, you should avoid one-tone relationships. To illustrate the basic issue, consider the RED shown in Figure 3. 5. Based on an existing paper-based yester, the modeled has assumed that each customer is associated with one "customer record" (I. E. , a paper form containing information about the customer, such as address, fax number, and so on). Clearly, each customer has only one customer record Ana can customer record Dealings to a single customer.

However, IT we automate the system and get rid of the paper form, then there is no reason not to combine the Customer and Customer Record entities into a single entity called Customer. Introduction: The importance of conceptual FIGURE 3. 5: An incorrect one-to-one relationship associated with Customer Record In many cases, one-to-one relationships indicate a modeling error. When you have a one-to-one relationship such as the one shown in Figure 3. 5, you should combine the two entities into a single entity. Many-to-many ? The world is full of monotony-many relationships.

A well-used example is "Student takes course. " Many-to-many relationships also arise when you consider the history of an entity. To illustrate, consider the RED shown in Figure 3. 6. At first glance, the relationship between Family and Single-Family Dwelling (SF) might seem to be one-to-one since a particular family can only live in one SF at a mime and each SF can (by definition) only contain a single family. However, it is possible for a family to live in different houses over time. Similarly, it is possible that many families inhabit a particular house over the years.

Thus, if the concept of time is considered, the relationship becomes many-to-many. We will discuss how you go about determining cardinality in subsequent sections. At this point, it is sufficient to recognize that there are two Introduction: The importance of conceptual 2. I:N notation ? In the I:N notation, the symbol "N" (and/or "W) is used to indicate "many' whereas "1" is used to indicate one". An example of the I:N notation is shown in Figure 3. 8. FIGURE 3. 8: A one-to- many relationship in I:N notation N 1 FIGURE 3. 6: What is the cardinality of this relationship?

Family lives in Swelteringly Dwelling popular (and equivalent) approaches to denoting "one" and "many' on an RED: the crow's foot notation you have already seen and the "1 :N" notation. 1 . Crows foot notation ? In the crows foot notation, three little lines (resembling a crow's foot) are used to indicate "many'. Not surprisingly, the absence of a crow's foot indicates "one". Thus, the relationship in Figure 3. Indicates that "each product is supplied by at most one supplier," whereas "each supplier may supply many products. ". FIGURE 3. : A one-to-many relationship in crows foot notation The RED model also supports additional cardinality information in the form of cardinality constraints. To keep things simple, however, the discussion of cardinality constraints is deferred until Section 6. 3. 2. Attributes 3. 1 . 2. 5 Attributes are properties or characteristics of a particularly entity about which we wish to collect and store data. In addition, there is typically one attribute that uniquely identifies particular instances of the entity. For example, each of your customers may have a unique customer ID. Such attributes are known as key attributes.

An introduction to data modeling For Reds that are drawn manually, attributes are traditionally shown as ovals containing the name of the attribute. If the attribute is a key, it is typically underlined. A number of attributes for the Customer entity are shown in Figure 3. 9. FIGURE 3. 9: A number of attributes of the Customer entity are shown in ovals. Name Custody Phone No. Learning objectives off rate an RED based on your understanding of a business scenario use associative entities to add attributes to relationships gain some familiarity with the role of data modeling and CASE tools in the development process 3. Exercises Contact person In the sections that follow, we step through the construction of an RED for the kitchen supply scenario. By following along, you should gain a better understanding of the basic techniques involved in data modeling as well as some of the design pitfalls that should be avoided. Adding attributes to Reds can result in very cluttered diagrams. Some CASE tools list he attributes inside the entity rectangle (see the discussion of CASE tools in Section 3. 4. 5). Another way to reduce clutter is to only show a handful of critical attributes on the diagram. 3. Understand the core constructs of the entity-relationship model If this lesson was on how to play golf, you would not read it and then assume that you are a good golfer. Golf is a skill that requires both theoretical knowledge and hours of practice. Thus, the only way to become a good golfer is to acquire a solid understanding of the fundamentals and then go out and hit thousands of balls. The same principles apply to data modeling. . 3. 1 Starting simple Let us Deign Walt ten sleepless Ana most essential statement one can make tout ten An introduction to data modeling wholesaling environment: customers buy products.

It is natural that you would want to both automate and informant (recall Section 2. 4) this important business process. 3. 3. 1. 1 Step one: identify the entities 100f23 Entities are physical things, organizations, roles and events about which we want to store information. In the wholesaling scenario, two entities are immediately obvious: Customer and Product. However, before we add the entities to our diagram, it is important that we have a firm understanding of what exactly these entities correspond to in the real world: 1 .

Customers ? In the wholesaling environment, a customer is an organization, not a person. There may be a single person at the organization through whom we conduct our business. We will refer to this person as the "contact person" for the customer in order to maintain a clean distinction between people and organizations. 2. Products ? It is not immediately clear whether the Product entity refers to a specific item or a class of similar items. For example, one of the products you sell is the "Fat Cat" mug. The Product ID of the mug is "88 4017" and it normally sells for $5. 0. Note, however, that there are many individual "Fat Cat" mugs and each one is slightly different due to irregularities, variations in painting, and so on. In our case, there are advantages to ignoring the individuality of each mug and treating them all as a single group of interchangeable items. Thus, when we talk about "a product" or "a SW", we are talking about an entire class of similar instances, not individual instances themselves. L Having made these assumptions explicitly, we can now create our first RED. Take out a piece of paper and a pencil.

Unless you have a special-purpose CASE tool, it is seldom worth the effort to draw the early drafts of your conceptual models on a computer. Reds typically require many modifications so you should not invest much time making your diagrams look nice. In fact, the diagram you are about to begin will In some environments, it may be necessary to treat products as individual items. For example, in the aerospace industry, there is a requirement to track individual parts by serial number in case a part fails. The requirement for "unit effectively' necessitates a different set of assumptions about the Product entity and thus leads to

Cite this Page

Business Analysis. Introduction to data modeling essay. (2018, Jan 06). Retrieved from https://phdessay.com/business-analysis-introduction-to-data-modeling-essay/

Don't let plagiarism ruin your grade

Run a free check or have your essay done for you

plagiarism ruin image

We use cookies to give you the best experience possible. By continuing we’ll assume you’re on board with our cookie policy

Save time and let our verified experts help you.

Hire writer