Log In   |  Register Free Newsletter Subscription
Skip navigation
Zibb
Subscribe to Control Engineering
FirstLight
RSS
Reprints/License
Print
Email
Average Rating:
  • (0)
    Rate this:
  • Mathematics of information

    Dennis Brandl -- Control Engineering, 1/1/2008

    Information is the important element of manufacturing IT, and one skill that every well-rounded control engineer should have is knowledge of the mathematics of information— specifically, the mathematics of relational databases. Most control engineers will eventually have to build or specify a database to hold instrument data, analysis data, or production reporting data. This is the point when understanding the underlying structure and mathematics of databases becomes important.

    The majority of databases today are “relational,” which means they are made up of multiple tables and relationships between the tables are based on common values within them, such as names or ID numbers. Well-structured databases are faster, smaller, and extremely easier to maintain that badly structured databases. Many IT consultants have found that they spend much more time fixing bad databases than creating new databases, demonstrating that the problem of bad database design is widespread and can be costly.

    Well-structured databases are “normalized,” but the rules of normalization are often not known or consistently applied. The purpose of normalization is to eliminate redundant information, making it easier to create, read, update, and delete database information. The better normalized a database is, the less special application code or fewer special use rules are required.

    Un-normalized databases will often have special use rules, such as “make sure you delete all of the rows in table 'A’ that have the specified key value.” Normalizing a database is also a key process in ensuring that the database accurately meets its requirements. Normalization cannot be performed when the requirements are fuzzy or uncertain.

    Minding your tuples

    Relational database tables are made up of rows and columns. The column’s names are called attributes. The individual rows in a database are called tuples, a mathematical term for an ordered list of objects. One or more attributes in a row make up the “key” to the tuple. The primary rule for relational databases is that no two rows can have the same key attribute values. This sometimes requires the creation of an additional attribute to hold a unique ID.

    Normalization rules

    The first rule of normalization is the removal of repeating attribute groups and creation of a new table to hold the repeating data. Repeating groups are elements that can have multiple values, such as a book that can have multiple authors. In this case a new table would be created for the repeating group which has a single row for each book/author pair. This is called “First Normal form.”

    Second Normal form is obtained by finding attributes that depend on only part of a multi-field key and moving them to a separate table. For example, in a book/author table, there could be an attribute for the book’s abstract; these would be the same for all rows for the same book.

    Third Normal form is obtained by eliminating columns that are not dependent on the key attributes. For example, in a book/author table, there could be an attribute that contains the author’s company name. In Third Normal form, an author/company table would be created.

    Most well designed databases are at least Third Normal form. There are additional rules and normalized forms, but these are often not needed for small databases. When you either help design or review manufacturing databases, check that the database is at least Third Normal form.

    Database structures and the rules for normalization are usually taught only in college-level Software Engineering or Computer Science courses, and most engineers never receive formal training. If you want to expand your skill set in the math of information, take a class at your local college or community college in database theory and structure. It will provide you with valuable IT skills.

    Author Information
    Dennis Brandl is president of BR&L Consulting in Cary, NC, which focuses on manufacturing IT. Reach him at dnbrandl@brlconsulting.com.
    Average Rating:
  • (0)
    Rate this:
  • RSS
    Reprints/License
    Print
    Email
    Talkback
    Reed Business Information Resource Center

    Featured Company


    Related Resources

    Advertisement

    Related Microsite Content

    Related Links

    More Content
    • Blogs
    • Discussions
    • Webcasts
    • Podcasts
    • Video

    Ask Control Engineering

    Ask Control Engineering

    Ask Control Engineering, Senior Editors from Control Engineering
    March 6, 2010
    Is each day is really shorter?
    Dear Control Engineering: I heard something about the recent earthquake in Chile...
    More

    Ask Control Engineering

    Ask Control Engineering

    Ask Control Engineering, Senior Editors from Control Engineering
    February 27, 2010
    Working with resistive sensor elements
    Dear Control Engineering: I’ve read that RTDs (resistance temperature...
    More

    View All Blogs RSS
    • Mustang Automation and Control: Employee retention, project management


      Don Colchin, Mustang Automation and Control president, explains project management and employee retention. Mark T. Hoske interviews this winner of the Control Engineering System Integrator of the Year 2010, over $50 million annual revenue category. Hear It Now
    • Instrumentation tutorial: Understanding multivariable sensors


      Smart process sensors and instrumentation can often provide more information than just one process variable, if you know how to access and use the extra data. Hear It Now
    • Recovery from a cyber security incident


      Cyber security experts Kevin Staggs, Shawn Gold, and Andrew Wray from Honeywell Process Solutions discuss what should happen if you have suffered a cyber security incident, or think you may have. Topics include detecting incidents, forensic techniques, appropriate responses, and more. Hear It Now
    • Fieldbus in upstream oil and gas applications


      Foundation Fieldbus is enjoying wider use in upstream oil & gas applications in conjunction with control systems like Yokogawa's Stardom. Hear It Now
    • Enterprise PLM


      Is your company ready for Enterprise PLM?

      Enterprise product life-cycle management (PLM) encompasses nine business processes—among them the much-embraced Design for Supply and Cost. This podcast sets up the relationship between PLM software and Enterprise PLM processes in basic terms, including the bonuses found in time-to-market and product quality.

      Sarvesh Jagannivas
      Speaker: Sarvesh Jagannivas
      Vice President of Marketing for Oracle’s Agile PLM software group
      Sidney Hill
      Moderator: Sidney Hill
      Executive Editor of Manufacturing Business Technology
      Hear It Now
      View All Videos»

    CtlEng_EngEdCenter_160x160
    Advertisement
    ABB_PAWorld_160x160
    NEWSLETTERS
    Weekly News
    Process Instrumentation & Sensors Monthly
    System Integration Monthly
    Process & Advanced Control Monthly
    Machine Control Monthly
    Information Control Monthly
    Product Review
    Sustainable Engineering
    Simplified Safety
    Fieldbus Facts
    PROFInews North American Edition



    Please read our Privacy Policy

    About Us   |   Advertising Info   |   Site Map   |   Contact Us   |   FREE Subscription   |   Useful Sites   |   RSS
    © 2010 Reed Business Information, a division of Reed Elsevier Inc. All rights reserved.
    Use of this Web site is subject to its Terms of Use | Privacy Policy