Recent questions tagged relational-algebra

3 3 votes
0 0 answers
1.0k
1.0k views
Which operation requires two relations as input to form a new relation and these two relations must have a common attribute?(1) Cartesian product operation(2) Division op...
0 0 votes
0 0 answers
148
148 views
Consider a pair of relations $R_{1}$ and $R_{2}$ having $t_{1}$ and $t_{2}$ number of tuples, respectively. Let us define the semijoin $\left(R_{1} \ltimes R_{2}\right)$ ...
0 0 votes
0 0 answers
227
227 views
Consider a pair of relations $R_{1}$ and $R_{2}$ having $t_{1}$ and $t_{2}$ number of tuples, respectively. Let us define the semijoin $\left(R_{1} \ltimes R_{2}\right)$ ...
1 1 vote
1 1 answer
530
530 views
Suppose (A, B) and (C, D) are two relation schemas. Let r1 and r2 be the corresponding relation instances. B is a foreign key in r1 that refers to C in r2. If data in r1 ...
0 0 votes
1 answers 1 answer
467
467 views
Suppose the relationship between customers and products are stored in a table BOUGHT (CUST, PROD, QT) such that there is a tuple $(c, p, n) \in$ BOUGHT if and only if the...
26 26 votes
6 answers 6 answers
8.6k
8.6k views
​​​​​Consider a database that includes the following relations:Defender(name, rating, side, goals)Forward(name, rating, assists, goals)Team(name, club, price)Which ONE of...
50 50 votes
7 7 answers
23.7k
23.7k views
​​​​​The relation schema, Person (pid, city), describes the city of residence for every person uniquely identified by pid. The following relational algebra operators are ...
28 28 votes
2 2 answers
15.4k
15.4k views
Consider the following two relations, $R(A, B)$ and $S(A, C)$:$$\begin{array}{|c|}\hline\textbf{R} \\\hline\begin{array}{c|c}\textbf{A} & \textbf{B} \\\hline\text{10} & ...
6 6 votes
1 1 answer
808
808 views
Division operator in relational algebra is appropriate to handle which of the following query types?employees work on at most one of the critical projectsemployees work o...
0 0 votes
1 1 answer
713
713 views
You are given three tables: team , table1 , and table2 . To find the names of all players in the team who are either present in table1 or table2 , consider the foll...
0 0 votes
0 0 answers
390
390 views
Can you help me understand the last 2 options
0 0 votes
0 0 answers
472
472 views
Given two relations R1 and R2 where R1 contains N1 tuples and R2 contains N2 tuples, give the minimum and maximum possible sizes (in tuples) for the relation produced by ...