0% found this document useful (0 votes)
150 views10 pages

Tuple and Domain Relational Calculus

Uploaded by

monsterorwot7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
150 views10 pages

Tuple and Domain Relational Calculus

Uploaded by

monsterorwot7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 10

WELCOME

NAME : DEEP KUMAR ROY


STU CODE : BWU/BTA/22/413
DEPARTMENT : Btech CSE AIML

COURSE NAME : DBMS


COURSE CODE : PCC-CSM 501
TOPIC : Tuple and Domain
Relational Calculus
Tuple and Domain
Relational Calculus
Tuple Relational Calculus and Domain Relational Calculus are two
powerful query languages used to interact with relational
databases. These formal logical frameworks provide flexibility and
expressiveness in retrieving and manipulating data.

MB
Introduction to Tuple
Relational Calculus
1 Tuple-Oriented 2 Declarative
Tuple Relational Calculus It specifies what data to
operates on entire tuples, retrieve, not how to
or rows, within a relation. retrieve it.

3 Variable-Based
Tuples are represented using variables that are bound to
specific attributes.
Syntax and Semantics of Tuple
Relational Calculus
Syntax Semantics Expressive Power

Tuple Relational Calculus uses a The semantics define the precise Tuple Relational Calculus can
formal grammar to express meaning and interpretation of express a wide range of queries,
queries, involving variables, Tuple Relational Calculus from simple selections to complex
predicates, and logical expressions, ensuring consistent nested subqueries.
connectives. and unambiguous results.
Expressiveness of Tuple
Relational Calculus
1 Set Operations
Tuple Relational Calculus can perform set operations such as
union, intersection, and difference on relations.

2 Aggregation
It supports aggregate functions like COUNT, SUM, AVG, MIN,
and MAX to summarize data.

3 Nested Queries
Complex queries can be expressed using nested subqueries,
enabling powerful data manipulation capabilities.
Introduction to
Domain Relational
Calculus
1 Domain-Oriented Declarative 2
Domain Relational Like Tuple Relational
Calculus operates on Calculus, it specifies what
individual attribute data to retrieve, not how
values, rather than entire to retrieve it.
tuples.

3 Variable-Based
Domain variables are bound to specific attributes, providing
a flexible way to express queries.
Syntax and Semantics of Domain
Relational Calculus
Syntax Semantics Expressive Power

Domain Relational Calculus uses a The semantics define the precise Domain Relational Calculus can
formal grammar similar to Tuple meaning and interpretation of express a wide range of queries,
Relational Calculus, with variables Domain Relational Calculus often with more compact and
and predicates. expressions, ensuring consistent intuitive representations.
results.
Expressiveness of
Domain Relational
Calculus
Aggregation
1
Domain Relational Calculus supports aggregate functions
like COUNT, SUM, AVG, MIN, and MAX.

2 Nested Queries
Complex queries can be expressed using nested subqueries,
providing powerful data manipulation capabilities.

3 Conciseness
Domain Relational Calculus often allows for more compact
and intuitive query representations compared to Tuple
Relational Calculus.
Comparison of Tuple and Domain Relational Calcu
Tuple-Oriented Domain-Oriented
Tuple Relational Calculus operates on entire tuples, or rows, Domain Relational Calculus operates on individual attribute
within a relation. values, rather than entire tuples.
This Photo by Unknown Author is licensed under CC BY-SA

Expressive Power Conciseness


Both calculi have equivalent expressive power, allowing the Domain Relational Calculus often allows for more compact and
representation of a wide range of queries. intuitive query representations.
THANK YOU

You might also like