What is Normalisation in DBMS?
- User
What is Normalisation in DBMS?
- Assistant
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.
- User
Can you give me an example of taking an unnormalised database and a normalised one?
- Assistant
Sure! Let's consider an example of a student database.
An unnormalized form of the database may look like this:
STUDENT_ID | NAME | AGE | COURSE | ADDRESS | PHONE_NO
1 | John | 20 | BTech | ABC | 1234567890 2 | Jane | 22 | BSc | DEF | 9876543210 3 | Joe | 21 | BCom | GHI | 1111111111
This unnormalized form of the database has several problems:
Data redundancy: The course and address information is repeated for each student. Inconsistent data: If the address of a student changes, it needs to be updated in multiple records. Data anomalies: Insertion, deletion, and update anomalies may occur. For example, if a new student is added without an address, the database will contain an inconsistent record.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →