Professional Documents
Culture Documents
Submitted by :
ECE SECTION : A
Notation:
A✕S
Consider two relations STUDENT (SNO, FNAME, LNAME) and DETAIL (ROLLNO,
AGE) below:
STUDENT
SNOFNAME LNAME
1 Albert D’Souza
2 Esha Fatehi
DETAIL
ROLLNOAGE
5 18
9 21
On applying CROSS PRODUCT on STUDENT and DETAIL:
STUDENT ✕ DETAILS
We can observe that the number of tuples in STUDENT relation is 2, and the
number of tuples in DETAIL is 2. So the number of tuples in the resulting relation on
performing CROSS PRODUCT is 2*2 = 4.
CHARACTERISTICS OF CARTESIAN PRODUCT
Syntax
2 Harry C
3 John B
DEPARTMENT
DEPT_NO DEPT_NAME
A Marketing
B Sales
C Legal
Input:
EMPLOYEE X DEPARTMENT
Output:
1 Smith A B Sales
1 Smith A C Legal
2 Harry C A Marketing
2 Harry C B Sales
2 Harry C C Legal
3 John B A Marketing
3 John B B Sales
3 John B C Legal
EXAMPLE 3 :
Summary
1. Academic Webpages :
● https://www.guru99.com/relational-algebra-dbms.html
● https://www.sciencedirect.com/topics/computer-science
● https://www.tutorialspoint.com/sql/sql-cartesian-joins.htm#:~:text=The
%20CARTESIAN%20JOIN%20or%20CROSS,is%20absent%20from%20the
%20statement.
● https://www.geeksforgeeks.org/cartesian-product-operation-in-relational-algebra
1. Text Books
Thank You!