Loading Page Content...
Preparing courses, live labs, and learning resources.सामग्री लोड हो रही है, कृपया प्रतीक्षा करें...
Preparing courses, live labs, and learning resources.सामग्री लोड हो रही है, कृपया प्रतीक्षा करें...
In relational database terminology, data is not saved as loose blobs of text. Instead, every piece of information is stored in an organized structure governed by strict mathematical and relational definitions. Understanding these core building blocks—Tables, Columns, Rows, and Schemas—is essential before writing any SQL code.
A relational table is a two-dimensional structure consisting of rows and columns. In theoretical computer science, a table is called a Relation, a row is called a Tuple, and a column is called an Attribute.
| Theoretical Term (Codd) | Practical SQL Term | Description |
|---|---|---|
| Relation | Table | The entire dataset representing an entity (e.g., students, invoices). |
| Tuple | Row / Record | A single horizontal instance of data representing one specific entity. |
| Attribute | Column / Field | A vertical column representing a specific property with a defined data type. |
| Degree (Arity) | Column Count | The total number of columns in a table. In the table above, degree = 4. |
| Cardinality | Row Count | The total number of rows currently stored. In the table above, cardinality = 3. |
| Domain | Data Type & Range | The allowable set of values for a column (e.g., integers between 1900 and 2100). |
A Database Schema is the complete architectural blueprint or structural layout of a database. It defines:
VARCHAR(100), INT).PRIMARY KEY, NOT NULL, CHECK).One of the great advantages of an RDBMS is Data Independence:
customers, orders or singular customer, order).phone_numbers = "9820012345, 9820054321"). Each column must contain atomic, single-valued entries.customer_registration_date rather than c_reg_dt.Continue learning with hands-on practice, examples, and exercises in the upcoming topic.
| Previous Lesson | Next Lesson |
|---|---|
| What is a Database & RDBMS | SQL vs NoSQL Overview |
Test your understanding of this lesson with 5 questions. Each question has one correct answer.