Monday, January 20, 2014

Business Analysis Approach (BA Planning & Monitoring)

Related with previous business analysis overview, today I post about the second chapter of BABOK (Business Analysis Body of Knowledge) : "Business Analysis Planning & Monitoring". It is really inspiring, you can learn so much knowledge from this book. The Business Analysis Planning and Monitoring Knowledge Area defines the tasks associated with the planning and monitoring of business analysis activities, including:
  • Identifying stakeholders.
  • Defining roles and responsibilities of stakeholders in the business analysis effort.
  • Developing estimates for business analysis tasks.
  • Planning how the BA will communicate with stakeholders.
  • Planning how requirements will be approached, traced, and prioritized.
  • Determining the deliverables that the BA will produce.
  • Defining and determining business analysis processes.
  • Determining the metrics that will be used for monitoring business analysis work.


2.1 Plan Business Analysis Approach

#Purpose
Approach to performing business analysis, which stakeholders need to be involved in the decision, will be consulted regarding and informed of the approach, and the rationale for using it.

#Description 
BA approaches describe the overall process that will be followed to perform BA work on a given initiative, how and when tasks will be performed, the techniques that will be used, and the deliverables that should be produced.

In order to plan the BA approach, the BA must understand the organizational process needs and objectives that apply to the initiative.

In many cases, organizations will have formal or informal standards in place regarding how business analysis is done and how it fits into project and other activities.

If no standards exists, the BA works with the appropriate stakeholders to determine how the work will be completed.

#Input
Business Need : The business analysis approach will be shaped by the problem or opportunity faced by the organization.

Expert Judgment : Used to determine the optimal business analysis approach.

Organizational Process Assets : Include the elements of  existing business analysis approaches in use by the organization.

#Elements
Plan Driven : Approach focus on minimizing-up-front uncertainty and ensuring that the solution is fully defined before implementation begins in order to maximize control and minimize risk. The project sponsor will have the final authority to approve solution requirements, but it is common for sponsors to insist that other stakeholders grant their approval before the sponsor will. #WaterfallMethods

Change Driven : Approaches focus on rapid delivery of business value in short iterations in return for acceptance of a higher degree of uncertainty regrading the overall delivery of the solution. These approaches tend to be preferred when taking an exploratory approach to finding the best solution or for incremental improvement of an existing solution. #AgileMethods

1. Timing of Business Work
Plan driven approaches have most business analysis work occur at the beginning of the project or during one specific project phase.

Change driven approaches may have a business analysis effort conducted vary to produce an initial list of high-level requirements. This product backlog is then updated throughout the project as new requirements emerge. Throughout the project, these requirements will be prioritized and re-prioritized based on the business need.

2. Formality And Level of Detail of Business Analysis Deliverables
Plan driven approaches typically call for a significant amount of formality and detail. Requirements are captured in a formal document or set of documents which follow standardized template. The specific content and format of the requirements documents can vary depending on the organizational methodologies, processes and templates.

Change driven approaches favor defining requirements through team interaction and through gathering feedback on a working solution. Mandatory requirements documentation is often limited to a prioritized requirements list. Formal documentation is often produced after the solution is implemented to facilitate knowledge transfer.

3. Requirements Prioritization
Determine how requirements will be prioritized and how those priorities will be used to define the solution scope.

4. Change Management
Changes to requirements may occur at any time. Effective business analysis practices can significantly reduce the amount of change required in a stable business environment but cannot eliminate it entirely.

Plan driven approaches seek to ensure that changes only occur when they are genuinely necessary and can be clearly justified. Each change is often handled as a “mini project,” complete with requirements elicitation,, estimates, design. Changed requirements impact both solution scope and the project scope and the change management process will be incorporated into the overall  project management process.

Change driven approaches presume that it is difficult to identify all requirements in advance of their implementation. Changes to existing solution capabilities are simply prioritized and selected for an iteration using the same criteria as new features and capabilities.

5. Business Analysis Planning Process
The BA must determine the process that will be followed to plan the execution of businesses analysis activities. In most cases, this process will be integrated into a larger project plan.

6. Communication With Stakeholders
Communication may be written or verbal, formal or informal. Decisions must be made at the outset of the project as to the applicability of such communications technologies such email with regards to project decision-making and approval of deliverables.

Plan driven approaches tend to rely on formal communication methods. Much of the communication of the actual requirements is in writing, and often uses pre-defined forms requiring signatory approvals. All project documentation is normally archived as parts of the project history.

Change driven approaches focus more on frequency of communication than on formal documentation. Official documentation is often in writing, but informal communication takes precedence over more formal written communication. Documentation frequently occurs following implementation.

7. Requirements Analysis and Management Tools
The BA must identify any requirements analysis or management tools that will be used.

8. Project Complexity
The complexity of the project, the nature of the deliverables, and the overall risk to the business needs to be taken into consideration. The factors listed below increase the complexity of business analysis efforts as they increase :
  • Number of stakeholders   
  • Number of business areas affected   
  • Number of business systems affected   
  • Amount and nature of risk   
  • Uniqueness of requirements   
  • Number of technical resources required
#Techniques
  • Decision Analysis (9.8) : May be used to rate available methodologies against the organizational needs and objectives.
  • Process Modeling (9.21) : Process Models can be used to define and document the business analysis approach.
  • Structured Walkthrough (9.30) : This can be used as a means of validating a created, selected, or tailored business analysis approach.
#Stakeholders
  • Customer, Domain SME, End User or Supplier : The approach taken may depend on their availability and involvement with the initiative.
  • Implementation SME : The business analysis approach taken should be compatible with the implementation lifecycle used by the implementation team.
  • Project Manager : The project manager must ensure that the business analysis approach is compatible with other project activities.
  • Tester : The business analysis approach must facilitate appropriate testing activities.
  • Regulator : Aspect of the approach or decisions made in the tailoring process may require approval.
  • Sponsor : Th approach taken may depend on their availability and involvement with the initiative.
#Output
A business analysis approach may specify team roles, deliverables, analysis techniques, the timing and frequency of stakeholder interactions, and other elements of the business analysis process. A methodology is a formalized and repeatable business analysis approach. It includes a decision about which organizational process assets will be applied and any decisions made regarding tailoring of the process for a specific situation.


Next : Stakeholder Analysis

Saturday, January 18, 2014

Kisah Jakarta Menangis dan Banjir 2014

Fenomena banjir hebat di awal tahun selalu menghantui kota Jakarta. Tidak terkecuali tahun ini, dibulan yang sama Januari. Banjir pertama yang saya alami adalah 2013 kemarin. Lokasi kostan saya di belakang WTC Sudirman sama sekali tidak banjir, malah gorong / selokan di sekitar kostan kering. Namun disayangkan tahun kemarin ada masalah mengenai listrik, alias mati lampu gara-gara ada masalah dengan gardunya. 

Kembali ke tahun 2014, sekarang saya sudah pindah ke Kelapa Gading. Kata orang banjir disini cukup parah. Kemarin berita bilang kawasan Kelapa Gading banjir cukup lumayan. Ternyata yang banjir depan MOI dan MKG sedangkan sekitaran komplek kost saya kering, dan bahkan tidak ada genangan. Berbanding terbalik dengan kondisi pagi ini, genangan di komplek menjadi 10-20 cm. Nampaknya hujan kemarin malam berlangsung lebat dan lama. Saya bersyukur sekali karena ternyata masih banyak toko dan rumah makan yang buka disini. Jadi tidak ada kesulitan berarti dan hanya cukup melintasi genangan air yang tak lama nampaknya mulai surut juga.

Jujur, banjir tahun ini lebih baik dibanding tahun. Ini juga bukan pandangan saya semata, namun menurut orang-orang disekitar saya. Saya melihat diberita banjir tahun ini tidak separah tahun lalu, dan cenderung lebih cepat surut. Saya yakin bahwa gubernur dan wakilnya bekerja keras untuk menangani krisis ini. Pandangan saya adalah perlunya kesadaran dari pemerintah pusat agar pemerintah daerah yang terlibat dapat bersinergi dan bekerja sama menyelesaikan masalah ini.

Jakarta tidak menangis saja bisa banjir kalau tetangga-nya menangis. Apalagi kalau Jabodetabek menangis semua. Tenggelam kita semua lama-lama di Jakarta. Perhatian juga diperlukan oleh masyarakat untuk budaya hidup bersih seperti tidak membuang sampah sembarangan. Fenomena ini jelas harus ditanam dalam diri sendiri. Mulailah dari hal kecil untuk memperbaiki. Semoga Jakarta dan tentunya Indonesia bisa lebih baik lagi. Semoga korban banjir cepat mendapatkan bantuan. Mari berdoa dan bertindak untuk Jakarta yang lebih baik. Salam.

Thursday, January 16, 2014

Bill Gates Quote - If You Born Poor

Siapa yang tidak mengenal sosok orang terkaya dunia? Orang ini berhasil meraup kekayaannya dari jagat teknologi. Yaaa orang itu adalah Bill Gates... Dalam kehidupan kita tidak bisa memilih untuk lahir sesuai kehendak dan pilihan kita. Lahir pada keluarga miskin atau kaya, lahir di asia atau amerika, dan sebagainya. Semuanya itu telah digariskan oleh takdir oleh Tuhan yang Maha Kuasa. Adapun kutipan ini berasal dari sosok Bill Gates yang mana berkaitan dengan awal kalimat paragraf ini.

If you born poor, it's not your mistake.
But if you die poor, it's your mistake.

#Terjemahan Indonesia:

Jika kamu terlahir miskin, itu bukan salahmu.
Tetapi jika kamu mati miskin, itu adalah salahmu.

Sosok Bill Gates adalah teladan bagi kita semua. Disamping kejeniusan dan kerja kerasnya agar menjadi berhasil, sosok rendah hati dan jiwa sosialnya patut kita teladani juga. Ajaibnya dia telah lama tidak aktif di Microsoft dan fokus pada yayasan-nya, menyumbang banyak dari kekayaannya tetapi semua tidak pernah habis, bahkan sekarang terus bertambah. Saya jadi ingat mengenai perumpamaan berikut ini:

Barangsiapa menabur banyak, ia akan menuai banyak. 
Barang siapa menabur sedikit, ia akan menuai sedikit.

Akhir kata, marilah kita semua berencana, berdoa dan berusaha. Segala sesuatu akan indah pada waktunya jika kita telah melakukan hal tersebut. Dan ketika kita sampai pada posisi yang lebih tinggi tersebut, jangan lupa untuk berbagi. Hendaknya, kita selalu bersyukur akan segala sesuatu yang kita terima. Selamat beraktifitas. :)

Monday, January 13, 2014

Karakter Pria Golongan Darah O

Ada berita unik mengenai karakter golongan darah dari Kompas. Jujur secara otomatis saya tergerak untuk mengklik berita tersebut. Setelah membaca dari awal hingga akhir, hasilnya adalah semua cocok. Dimulai dari saya selalu berbicara berdasarkan fakta dan logika, bisa mengumbar kata - kata manis seperti puisi dalam blog ini, susah diatur dan keras kepala. Heran juga ya bisa tepat 100%. Lengkapnya baca sendiri aja yaa... Selamat membaca. :)

Pria Golongan Darah O, Pencinta yang Setia dan Pemberontak
 
Pria dengan golongan darah O memiliki karakter hangat, bersahabat, dan punya percaya diri tinggi. Mereka selalu bicara atas dasar fakta dan logika. Pria tipe ini menyenangkan untuk diajak berdiskusi.

Selain itu, pria bergolongan darah O pintar mengumbar kata-kata manis. Tak heran, mereka biasanya mudah mencuri perhatian perempuan. Namun, pria bergolongan darah O enggan mengalah dan mengakui kesalahan, tidak suka diatur dan keras kepala. Walau berkepribadian tenang saat berhadapan dengan konflik, pria ini bukan tipe yang berlebihan dan neko-neko, dan menjalani hidup apa adanya.

Sisi positif: pemikirannya yang kuat membuat ia bisa menjadi teman untuk mencari solusi. Mereka cekatan dalam memecahkan persoalan, memiliki rasa cinta yang kuat. Ketika jatuh cinta pada seseorang, mereka akan serius menjalani hubungannya, dan apa pun akan dilakukan untuk membahagiakan pasangannya.

Pria golongan darah O adalah tipe pencinta setia, cenderung tidak banyak bicara, dan memiliki harga diri yang tinggi.

Sisi negatif: jika egonya terusik, maka emosinya akan meledak. Begitu pula jika berada dalam suasana yang tak membuatnya nyaman, mereka tak segan untuk memberontak. Bahkan, sikap percaya dirinya yang tinggi terkadang membuatnya tak memikirkan perasaan orang lain. Selain itu, ada kalanya sifat kekanak-kanakan mereka muncul.

Golongan Darah A


Golongan Darah B


Sumber : Female - Kompas

Wednesday, January 8, 2014

Smurf 2 Quote - It Doesn't Matter Where You Came From ...

Back to work's atmosphere after long holiday feels so heavy. 9 days passed so quickly, half of heart and soul still left behind in my hometown. Today I was reminded of a movie that I watched last night : Smurf 2. A cartoons before bed is quite attractive and it has a interesting quotea at the end of the story.

It doesn't matter where you came from.
What matters is who you choose to be.

This quote burn my spirit again. A spirit that make me remember and motivate of purpose why I am here at Jakarta, on adventure away from home, family and friends. It doesn't matter where we came from, what matters is who we choose to be. Everyone has right to determine their own choice, for example is when I chose to work in Jakarta rather than continue my family business. I chose to pursue a career as a consultant instead of a businessman. I was came from a merchant family, and I am so grateful that I could graduated from university, compared to my parents who only till high school.

Whatever my result later, I  have made my choices. To support that choice, I need to have integrity in order everything can be achieved according to my plan. In spite of everything, mankind can only pray, plan, and strive. But in the end God determine everything. Happy new year 2014. God bless you.

Monday, January 6, 2014

Kutipan Smurf 2 - It Doesn't Matter Where You Came From ...

Kembali ke suasana bekerja setelah liburan cukup lama rasanya cukup berat yaaa... 9 hari berlalu begitu cepat, separuh hati dan jiwa pun masih tertinggal di kampung halaman... Hari ini saya teringat film yang kemarin malam saya tonton : Smurf 2. Film kartun sebelum tidur tersebut cukup menarik dan memiliki sebuah kutipan yang menarik di akhir ceritanya.

It doesn't matter where you came from.
What matters is who you choose to be.

Kutipan diatas membakar semangat saya lagi. Semangat yang membuat saya teringat dan termotivasi akan tujuan saya berada di Jakarta, merantau jauh dari keluarga dan teman. Tidak penting kita berasal darimana, yang penting adalah pilihan kita untuk menjadi apa. Setiap orang tentunya memiliki haknya masing-masing untuk menentukan pilihan hidupnya, contohnya adalah saya ketika memilih untuk bekerja di Jakarta daripada melanjutkan usaha orang tua. Saya memilih untuk mengejar karir menjadi seorang konsultan daripada menjadi seorang pengusaha. Latar belakang keluarga saya adalah pedagang, dan saya bersyukur sekali bisa kuliah dibandingkan orang tua saya yang hanya sampai SMA. 

Apapun hasil yang saya dapatkan nanti, saya telah menentukan sebuah pilihan. Untuk menunjang pilihan itu saya perlu memiliki integritas agar semuanya dapat tercapai sesuai dengan rencana. Terlepas dari semuanya, manusia hanya dapat berdoa, berencana dan berusaha, tapi Tuhanlah yang menentukan segalanya. Selamat menjalani tahun 2014. Semoga semuanya dilancarkan-Nya... :)

Friday, January 3, 2014

Business Intelligence - OLTP vs OLAP (Differences)

Before I go to bed, I would like to share about OLTP and OLAP. This article is taken from 2 source: MicroStrategy and Datawarehouse4u. I think this article will be useful for us in order to understand more about the foundation of Business Intelligence. Enjoy. :)


---MicroStrategy---

#Source Systems (OLTP)

Source systems are typically databases, file sources, web sources or mainframes that store transaction processing data. As such, they are an OnLine Transaction Processing System (OLTP). Transaction processing involves simple recording of transaction like sales, inventory, withdrawals, deposits, and so forth.

The data in source systems have the following characteristics:
  • Data access is read/write (numerous selects, inserts, updates, and deletes).
  • Data is aligned by application (business activities and workflow).
  • Data formats are not necessarily uniform across different source systems.
  • Data history is typically limited to recent or current data.
A bank is one example of a business with many different types of source systems. The average bank offers their customers a variety of services and, therefore, needs these different type of source systems to support their services, each of which has a different workflow.

For example, consider the Automated Teller Machine (ATM) and the bank teller. At an ATM, you can withdraw or deposit money as well as check your account balance. However, if you need a money order, you have to go inside and speak with a bank teller. The bank has different operational system, each design to perform tasks that are specific to the service.

To take our example further, if a bank wanted to see a unified view of a particular customer - such as a customer's ATM activity, loan status, account balances, money market account information, and so forth - all of the customer's information from each of the different source systems would have to be collected. After this data is collected, it is stored in a centralized data warehouse.

#Data Warehouse (OLAP)

A well-designed and robust data warehouse lies at the heart of the business intelligence system and enables its users to leverage the competitive advantage that business intelligence provides. A data warehouse is an example of an OnLine Analytical Processing System (OLAP).

While source systems are designed and optimized for transaction processing, data warehouses are designed and optimized for analytical

processing. Analytical processing involves manipulating transaction records to calculate sales trends, growth patterns, percent to total contribution, trend report, profit analysis and so forth.

The data in a data warehouse have the following characteristics:
  • Data access is typically read-only (IN-SQL, mostly selects are used. Generally very few inserts, updates, or deletes are used).
  • Data is aligned by business subjects.
  • Data format are uniformly integrated.
  • Data history extends long term, usually 2 to 5 years.
A data warehouse is populated with data from the existing operational systems with an ETL process.

#Summary of Differences - OLTP VS OLAP

The following table summarizes the differences between OLTP and OLAP systems:


#ETL Process

The extraction, transformation, and loading (ETL) process contains information that facilitates the transfer of the data from the source systems to the data data warehouse.

Specifically, the ETL Process does the following:
  • Store information about the source system structure and content
  • Store information about the data warehouse structure and content
  • Correlates source system structure and content to that of the data warehouse
  • Provides information to the data extraction tools that physically execute the transfer of data from the source systems to the data warehouse




---Datawarehouse4u---

#OLTP vs. OLAP

We can divide IT systems into transactional (OLTP) and analytical (OLAP). In general we can assume that OLTP systems provide source data to data warehouses, whereas OLAP systems help to analyze it.



OLTP (On-line Transaction Processing) is characterized by a large number of short on-line transactions (INSERT, UPDATE, DELETE). The main emphasis for OLTP systems is put on very fast query processing, maintaining data integrity in multi-access environments and an effectiveness measured by number of transactions per second. In OLTP database there is detailed and current data, and schema used to store transactional databases is the entity model (usually 3NF).

OLAP (On-line Analytical Processing) is characterized by relatively low volume of transactions. Queries are often very complex and involve aggregations. For OLAP systems a response time is an effectiveness measure. OLAP applications are widely used by Data Mining techniques. In OLAP database there is aggregated, historical data, stored in multi-dimensional schemas (usually star schema).


The following table summarizes the major differences between OLTP and OLAP system design.



Thursday, January 2, 2014

Database Normalization From About.Com

Continuation from previous article : Database Normalization From Microsoft, I'm add some other article that related with normalization. Taken from about.com, this article will complete the database series. I'm quite full with normalization and database. Thank you for insights from experts. I hope you guys can get the understanding of all these posts. Happy reading.

Database Normalization Basics

If you've been working with databases for a while, chances are you've heard the term normalization. Perhaps someone's asked you "Is that database normalized?" or "Is that in BCNF?" All too often, the reply is "Uh, yeah." Normalization is often brushed aside as a luxury that only academics have time for. However, knowing the principles of normalization and applying them to your daily database design tasks really isn't all that complicated and it could drastically improve the performance of your DBMS.

In this article, we'll introduce the concept of normalization and take a brief look at the most common normal forms. Future articles will provide in-depth explorations of the normalization process.

#What is Normalization?
Normalization is the process of efficiently organizing data in a database. There are two goals of the normalization process: eliminating redundant data (for example, storing the same data in more than one table) and ensuring data dependencies make sense (only storing related data in a table). Both of these are worthy goals as they reduce the amount of space a database consumes and ensure that data is logically stored.

#The Normal Forms
The database community has developed a series of guidelines for ensuring that databases are normalized. These are referred to as normal forms and are numbered from one (the lowest form of normalization, referred to as first normal form or 1NF) through five (fifth normal form or 5NF). In practical applications, you'll often see 1NF, 2NF, and 3NF along with the occasional 4NF. Fifth normal form is very rarely seen and won't be discussed in this article.

Before we begin our discussion of the normal forms, it's important to point out that they are guidelines and guidelines only. Occasionally, it becomes necessary to stray from them to meet practical business requirements. However, when variations take place, it's extremely important to evaluate any possible ramifications they could have on your system and account for possible inconsistencies. That said, let's explore the normal forms.

#First Normal Form (1NF)
First normal form (1NF) sets the very basic rules for an organized database:
  • Eliminate duplicative columns from the same table.
  • Create separate tables for each group of related data and identify each row with a unique column or set of columns (the primary key).
#Second Normal Form (2NF)
Second normal form (2NF) further addresses the concept of removing duplicative data:
  • Meet all the requirements of the first normal form.
  • Remove subsets of data that apply to multiple rows of a table and place them in separate tables.
  • Create relationships between these new tables and their predecessors through the use of foreign keys.
#Third Normal Form (3NF)
Third normal form (3NF) goes one large step further:
  • Meet all the requirements of the second normal form.
  • Remove columns that are not dependent upon the primary key.
#Boyce-Codd Normal Form (BCNF or 3.5NF)
The Boyce-Codd Normal Form, also referred to as the "third and half (3.5) normal form", adds one more requirement:
  • Meet all the requirements of the third normal form.
  • Every determinant must be a candidate key.
A candidate key is a combination of attributes that can be uniquely used to identify a database record without any extraneous data. Each table may have one or more candidate keys. One of these candidate keys is selected as the table primary key. (Mike Chapple)

A candidate key is a single column or group of columns that uniquely identify a row. You can have multiple candidate keys in a single table because it's possible to have multiple unique constraints. One of the candidate keys can be designated as the primary key for the table. 
A composite key is simply any key that is composed of more than one column. This means that when a candidate key has multiple columns in it, it is also a composite key. (Matt Nelson)

#Fourth Normal Form (4NF)
Finally, fourth normal form (4NF) has one additional requirement:
  • Meet all the requirements of the third normal form.
  • A relation is in 4NF if it has no multi-valued dependencies.
Multivalued dependencies occur when the presence of one or more rows in a table implies the presence of one or more other rows in that same table.

Examples:
For example, imagine a car company that manufactures many models of car, but always makes both red and blue colors of each model. If you have a table that contains the model name, color and year of each car the company manufactures, there is a multivalued dependency in that table. If there is a row for a certain model name and year in blue, there must also be a similar row corresponding to the red version of that same car.


Remember, these normalization guidelines are cumulative. For a database to be in 2NF, it must first fulfill all the criteria of a 1NF database.

#Some Good Reasons Not To Normalize
That said, there are some good reasons not to normalize your database. Let’s look at a few: 

1. Joins are expensive. 
Normalizing your database often involves creating lots of tables. In fact, you can easily wind up with what might seem like a simple query spanning five or ten tables. If you’ve ever tried doing a five-table join, you know that it works in principle, but its painstakingly slow in practice. If you’re building a web application that relies upon multiple-join queries against large tables, you might find yourself thinking: “If only this database wasn’t normalized!” When you hear that thought in your head, it’s a good time to consider denormalizing. If you can stick all of the data used by that query into a single table without really jeopardizing your data integrity, go for it! Be a rebel and denormalize your database. You won’t look back!

2. Normalized design is difficult. 
If you’re working with a complex database schema, you’ll probably find yourself banging your head against the table over the complexity of normalization. As a simple rule of thumb, if you’ve been banging your head against the table for an hour or two trying to figure out how to move to the fourth normal form, you might be taking normalization too far. Step back and ask yourself if it’s really worth continuing.

3. Quick and dirty should be quick and dirty. 
If you’re just developing a prototype, just do whatever works quickly. Really. It’s OK. Rapid application development is sometimes more important than elegant design. Just remember to go back and take a careful look at your design once you’re ready to move beyond the prototyping phase. The price you pay for a quick and dirty database design is that you might need to throw it away and start over when it’s time to build for production.

As a parting thought, I offer some words of caution. When you do choose to vary from the rules of normalization, you’ll need to be extra vigilant about the way you enforce database integrity. If you store redundant information, put triggers and other controls in place to make sure that information stays consistent.


Database Normalization From Microsoft

Good afternoon... Inspite of these days are holidays let's learn something useful and insightful. Last month I've posted about basic of database design. In that post, we could read some paragraphs that tell us about normalization. Still taken from the same source : Microsoft, we'll learn deeper about our knowledge in database design. I've just finished read this article and would like to share with you here. For some of them who use "Ready Products" maybe this post won't be fit but for them who do custom solution, this post might be useful. Happy reading. :)

Description of Normalization

Normalization is the process of organizing data in a database. This includes creating tables and establishing relationships between those tables according to rules designed both to protect the data and to make the database more flexible by eliminating redundancy and inconsistent dependency.

Redundant data wastes disk space and creates maintenance problems. If data that exists in more than one place must be changed, the data must be changed in exactly the same way in all locations. A customer address change is much easier to implement if that data is stored only in the Customers table and nowhere else in the database.

What is an "inconsistent dependency"? While it is intuitive for a user to look in the Customers table for the address of a particular customer, it may not make sense to look there for the salary of the employee who calls on that customer. The employee's salary is related to, or dependent on, the employee and thus should be moved to the Employees table. Inconsistent dependencies can make data difficult to access because the path to find the data may be missing or broken.

There are a few rules for database normalization. Each rule is called a "normal form." If the first rule is observed, the database is said to be in "first normal form." If the first three rules are observed, the database is considered to be in "third normal form." Although other levels of normalization are possible, third normal form is considered the highest level necessary for most applications.

As with many formal rules and specifications, real world scenarios do not always allow for perfect compliance. In general, normalization requires additional tables and some customers find this cumbersome. If you decide to violate one of the first three rules of normalization, make sure that your application anticipates any problems that could occur, such as redundant data and inconsistent dependencies.

#First Normal Form
  • Eliminate repeating groups in individual tables.
  • Create a separate table for each set of related data.
  • Identify each set of related data with a primary key.
Do not use multiple fields in a single table to store similar data. For example, to track an inventory item that may come from two possible sources, an inventory record may contain fields for Vendor Code 1 and Vendor Code 2.

What happens when you add a third vendor? Adding a field is not the answer; it requires program and table modifications and does not smoothly accommodate a dynamic number of vendors. Instead, place all vendor information in a separate table called Vendors, then link inventory to vendors with an item number key, or vendors to inventory with a vendor code key. 

#Second Normal Form
  • Create separate tables for sets of values that apply to multiple records.
  • Relate these tables with a foreign key.
Records should not depend on anything other than a table's primary key (a compound key, if necessary). For example, consider a customer's address in an accounting system. The address is needed by the Customers table, but also by the Orders, Shipping, Invoices, Accounts Receivable, and Collections tables. Instead of storing the customer's address as a separate entry in each of these tables, store it in one place, either in the Customers table or in a separate Addresses table.

#Third Normal Form
  • Eliminate fields that do not depend on the key.
Values in a record that are not part of that record's key do not belong in the table. In general, any time the contents of a group of fields may apply to more than a single record in the table, consider placing those fields in a separate table.

For example, in an Employee Recruitment table, a candidate's university name and address may be included. But you need a complete list of universities for group mailings. If university information is stored in the Candidates table, there is no way to list universities with no current candidates. Create a separate Universities table and link it to the Candidates table with a university code key.

EXCEPTION: Adhering to the third normal form, while theoretically desirable, is not always practical. If you have a Customers table and you want to eliminate all possible interfield dependencies, you must create separate tables for cities, ZIP codes, sales representatives, customer classes, and any other factor that may be duplicated in multiple records. In theory, normalization is worth pursing. However, many small tables may degrade performance or exceed open file and memory capacities.

It may be more feasible to apply third normal form only to data that changes frequently. If some dependent fields remain, design your application to require the user to verify all related fields when any one is changed.

#Other Normalization Forms
Fourth normal form, also called Boyce Codd Normal Form (BCNF), and fifth normal form do exist, but are rarely considered in practical design. Disregarding these rules may result in less than perfect database design, but should not affect functionality. 

---Example---

These steps demonstrate the process of normalizing a fictitious student table.

1. Unnormalized table: 


2. First Normal Form: No Repeating Groups
Tables should have only two dimensions. Since one student has several classes, these classes should be listed in a separate table. Fields Class1, Class2, and Class3 in the above records are indications of design trouble.

Spreadsheets often use the third dimension, but tables should not. Another way to look at this problem is with a one-to-many relationship, do not put the one side and the many side in the same table. Instead, create another table in first normal form by eliminating the repeating group (Class#), as shown below:


3. Second Normal Form: Eliminate Redundant Data
Note the multiple Class# values for each Student# value in the above table. Class# is not functionally dependent on Student# (primary key), so this relationship is not in second normal form.

The following two tables demonstrate second normal form: 


4. Third Normal Form: Eliminate Data Not Dependent On Key
In the last example, Adv-Room (the advisor's office number) is functionally dependent on the Advisor attribute. The solution is to move that attribute from the Students table to the Faculty table, as shown below:



Source : Microsoft

Wednesday, January 1, 2014

Happy New Year 2014 / Selamat Tahun Baru 2014

Selamat tahun baru 2014 semuanya. Semoga tahun ini bisa menjadi lebih baik daripada tahun kemarin. Waktu terasa begitu cepat berlalu. Saya bersyukur tahun baru ini saya bisa menghabiskan waktu bersama keluarga dan teman-teman dekat saya. Saya harap kalian juga mengalami waktu yang berharga bersama orang-orang yang kalian harapkan. Oya, karena sekarang masih tanggal 1 Januari, artinya kita masih memiliki 364 hari kedepan untuk berencana, berdoa dan bertindak. Rencanakanlah strategi dan mimpi yang ingin diwujudkan di tahun ini, kuatkanlah semangat doamu dan pastikan semua tindakanmu dilakukan sepenuh hati. Tahun ini saya akan mencoba lebih terbuka dengan mengaktifkan fitur komentar yang ada di blog ini. Keterbukaan adalah awal dari inspirasi. Sekali lagi: selamat tahun baru. Selamat liburan. :)


Happy New Year 2014 everybody. Hopefully this year will be better than last year. Time passed so fast. I'm glad that this new year I could celebrate this event with my family and close friends. I hope that you guys also had precious time with all people you expect. Anyway, since it is still January 1st, it means that we still have 364 days ahead to plan, pray and act. Plan your strategy and dreams to be realized in this year, strengthen the spirit of prayer and make sure all action done wholeheartedly.  This year I will try to be more open by enable comment feature in this blog. Openness is the beginning of inspiration. Once again: Happy New Year. Happy Holidays. :)