Recent questions tagged relational-algebra

3 votes
2 answers
213
$\sigma_{A=B \text{ and } B=C \text{ and } C=A} \bigg( \Pi_A (R) \times \Pi_B (R) \times \Pi_C (R) \bigg)$The number of rows returned by the above relational algebraic ex...
2 votes
1 answer
214
https://gateoverflow.in/?qa=blob&qa_blobid=7899832711610886100How can we know that when we have to use natural join and when Cartesian product??
3 votes
1 answer
215
Consider the following schema:Student (Sid, Sname, age)Course Info (Cid, Cname, Instructor SSN)Enroll (Sid, Cid, grade).The relational algebra expression for “find the ...
1 votes
3 answers
216
How the following two expressions are equal?The LHS will remove duplicates but RHS will not.Please explain
1 votes
0 answers
217
4 votes
1 answer
218
4 votes
2 answers
220
Does out put of conditional join contains duplicates?I know that it gives distinct in natural join as the projection operator removes duplicate rows. But in conditional j...
4 votes
4 answers
222
52 votes
5 answers
223
Consider a database that has the relation schema CR(StudentName, CourseName). An instance of the schema CR is as given below.$$\begin{array}{|c|c|} \hline \textbf{Student...
3 votes
3 answers
226
1 votes
1 answer
228
Is statement 1 true for all safe expressions ?
0 votes
1 answer
229
1 votes
0 answers
230
What if depositor and borrower contain duplicate names? They havent given name as primary key?
9 votes
1 answer
233
2 votes
1 answer
236
Say I have two tables and they have some attributes in common, assume x is common, now will x will appear once in the output or twice for following cases? Natural joinCro...