Introudction to dbms and RDMBS_Presentation.pptx

ssuser0dffaa 4 views 14 slides Jun 19, 2024
Slide 1
Slide 1 of 14
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14

About This Presentation

RDBNS ppts for new users


Slide Content

Relational Data Model (RDMBS) Key Concepts Your Name/Institution

Introduction to RDMBS The Relational Data Model (RDMBS) is a way to structure and query data using tables, which are also called relations. It is the most widely used data model for databases.

Attributes An attribute is a characteristic or parameter for which data are stored in a relation. Simply stated, the columns of a relation are the attributes, which are also referred to as fields.

Tuples Each row of data in a relation (table) is called a tuple. A tuple represents a single data item in the table.

Domains A domain is a set of values from which an attribute can take a value in each row. Usually, a data type is used to specify the domain for an attribute. For example, in the STUDENT relation, the attribute RollNumber takes integer values, hence its domain is a set of integer values.

Degree The number of attributes in a relation is called the Degree of the relation. For example, a table with 5 columns has a degree of 5.

Cardinality Cardinality refers to the number of tuples (rows) in a relation (table). For example, a table with 50 rows has a cardinality of 50.

Database Keys Keys are crucial in relational databases as they ensure each record within a table is uniquely identifiable. There are several types of keys, each serving a different purpose.

Primary Key A primary key is a unique identifier for a tuple in a relation. Each table can have only one primary key, which ensures that no two rows have the same value for this key.

Foreign Key A foreign key is an attribute that creates a link between two tables. It is a field in one table that is the primary key in another table, establishing a relationship between the two tables.

Candidate Key A candidate key is an attribute, or a set of attributes, that can uniquely identify a tuple in a relation. Each table can have multiple candidate keys, but only one primary key.

Alternate Key An alternate key is any candidate key that is not chosen as the primary key. These keys are still unique identifiers for tuples but serve as alternatives to the primary key.

Conclusion Understanding the key concepts of the Relational Data Model is essential for working with databases. Attributes, tuples, domains, degrees, and cardinality, along with various types of keys, form the foundation of database management.

Q&A Questions and Answers