Conceptual Database Overview
Conceptual
Database Overview: -
- A database is an organised collection of structured data stored securely and permanently.
- It allows the user to create, insert, update, and delete the data.
- In a relational database, tables, fields, and records are the fundamental building blocks used to organise and store information.
- A database acts as a digital filing cabinet, where tables are the individual folders, records are the documents inside those folders, and fields are the specific pieces of information on each document.
1) Table:
-
- A table is a collection of related data that is organized in a structured format of rows and columns.
- Each table represents a single entity type (e.g., Student, Employee, Customers, Products, Orders).
- Each table has a unique name and is defined by the fields in it.
- This separation helps maintain data integrity and makes it easier to manage and query information.
- For example, a database for a school might have separate tables for Students, Courses, and Teachers.
2) Fields:
-
- Fields are also known as columns or attributes.
- Fields represent a single attribute or characteristic of the entity.
- Each field represents a specific type of information about the entity.
- For Example, the Students table contains fields that might include StudentID, Name, group, and totalMarks.
- Each field has a unique name in table and it is assigned a specific data type, such as text, numbers, or dates, which tells the kind of data it can hold.
3) Records:
-
- A record is also referred to as a 'row' or 'tuple'.
- A record is a single entry within a table. It contains a complete set of values for each of the fields in the table.
- Using the Students table example, a single record would represent one student. This record would include a value for StudentID, a value for Name, a value for Marks, and so on, for that specific student.
- Example: In the Students table → (101, "Rohit", 35, "BCOM CA") is a record.