Sitemap
Ajay Kumar Mahto

Ajay Kumar Mahto

Meet Ajay a blogger and AI/DS expert. Sharing insights on cutting-edge tech, machine learning, data analysis, and their real-world applications.

Member-only story

Theory of Relational Algebra

4 min readDec 27, 2024

--

Formal Relational Query Languages

  • Relational Algebra — > Procedural and Algebra based
  • Tuple Relational Calculus — → Non-Procedural and Predicate Calculus based
  • Domain Relational Calculus — → Non-Procedural and Predicate Calculus based
Press enter or click to view image in full size

Select Operation

The purpose is to identify, or fetch set of tuples (rows) from Relation on given conditions. General syntax: σ<condition> (Relation)

Note: there is big difference in SQL select and relation algebra select operation

Press enter or click to view image in full size

Project Operation

Π <attribute> (R)

in this example project A,C from given relation .

Note : SQL select operation and relation algebra project operation is similar

but SQL select query allow duplicate values and relation algebra project dont allow duplicate values

--

--

Ajay Kumar Mahto
Ajay Kumar Mahto

Written by Ajay Kumar Mahto

Meet Ajay a blogger and AI/DS expert. Sharing insights on cutting-edge tech, machine learning, data analysis, and their real-world applications.