Chapter 6 Query Languges
Chapter 6 Query Languges
JIT Fundamentals of
Faculty of computing Database systems
&Informatics
Chapter Six
Query Languages
Relational Query Languages
must be union-compatible:
• Same number of fields.
• Joins
1
6
Cartesian-Product Operation – Example
Relations r, s:
A B C D E
1 10 a
10 a
2 20 b
r 10 b
s
r x s:
A B C D E
1 10 a
1 10 a
1 20 b
1 10 b
2 10 a
2 10 a
2 20 b
2 10 b
Cross Product Example
Cross Product
How to resolve????
Renaming operator: