Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged relational-algebra
1
votes
1
answer
241
How does following SQL translates to relational algebra divide operation?
Book claims that below query translates to relational algebra expression $P/Q$. Can anyone explain how does the below query translates to relational algebra expression $P/Q$? Assume $Q$ has attributes $B_1,B_2,...,B_m$ ... addition the attributes $A_1,A_2,...,A_n$. How above query equates to relation algebra expression $P/Q$?
Book claims that below query translates to relational algebra expression $P/Q$. Can anyone explain how does the below query translates to relational algebra expression $P...
GateAspirant999
1.4k
views
GateAspirant999
asked
Nov 5, 2016
Databases
relational-algebra
sql
databases
relational-calculus
+
–
8
votes
3
answers
242
Number of tuples in natural join
Consider the following relations: $R_1(A,B,C)$ and $R_2(A,D,E)$. $R_1$ has 1000 records and $R_2$ has 2000 records. The attribute $A$ in $R_2$ is referencing attribute $A$ in $R_1$. Let $X$ be minimum number of records in $R_1$ ⨝ $R_2$ and $Y$ be the maximum number of records in $R_1$⨝$R_2$. The sum of $(X+Y)$ is _______.
Consider the following relations: $R_1(A,B,C)$ and $R_2(A,D,E)$. $R_1$ has 1000 records and $R_2$ has 2000 records. The attribute $A$ in $R_2$ is referencing attribute $A...
GateAspirant999
11.3k
views
GateAspirant999
asked
Oct 31, 2016
Databases
natural-join
databases
relational-algebra
+
–
1
votes
1
answer
243
MadeEasy Test Series: Databases - Relational Algebra
debanjan sarkar
346
views
debanjan sarkar
asked
Oct 16, 2016
Databases
made-easy-test-series
databases
relational-algebra
+
–
2
votes
1
answer
244
MadeEasy Test Series: Databases - Relational Algebra
debanjan sarkar
525
views
debanjan sarkar
asked
Oct 16, 2016
Databases
made-easy-test-series
databases
relational-algebra
+
–
3
votes
1
answer
245
Online test
Rahul Jain25
610
views
Rahul Jain25
asked
Oct 4, 2016
Databases
relational-algebra
databases
+
–
4
votes
1
answer
246
Online test
Rahul Jain25
443
views
Rahul Jain25
asked
Oct 4, 2016
Databases
databases
relational-algebra
+
–
4
votes
1
answer
247
Online test
Rahul Jain25
638
views
Rahul Jain25
asked
Oct 4, 2016
Databases
relational-algebra
databases
+
–
4
votes
3
answers
248
relational algebra
In the following relational algebra expressions, assume union and difference are multi set operators and the relations R(x),S(x) and T(x) are multi sets. Q1:(R U S)-T Q2:(R - T)U(S - T) (A) Q1 and Q2 produce the same answer (B) ... answer to Q2 is always contained in the answer to Q1 (D) They produce complete different answers what is the answer ,please explain or give example.
In the following relational algebra expressions, assume union and difference are multi set operators and the relations R(x),S(x) and T(x) are multi sets.Q1:(R U S)-TQ2:(R...
indrajeet
1.5k
views
indrajeet
asked
Sep 20, 2016
Databases
databases
relational-algebra
test-series
gatebook-dbms
+
–
1
votes
2
answers
249
Explain Division Operator
R/S is defined as ${\prod }_{R-S} (r) - {\prod }_{R-S} \begin{pmatrix} \left \langle {\prod }_{R-S} (r) \times S \right \rangle - {\prod }_{R-S,S} (r) \end{pmatrix}$ Please explain the validity of the statements with example
R/S is defined as${\prod }_{R-S} (r) - {\prod }_{R-S} \begin{pmatrix} \left \langle {\prod }_{R-S} (r) \times S \right \rangle - {\prod }_{R-S,S} (r) \end{pmatrix}$Please...
pC
738
views
pC
asked
Sep 18, 2016
Databases
relational-algebra
databases
+
–
4
votes
1
answer
250
Which of the following statements are TRUE/FALSE?
Which of the following statements are TRUE/FALSE? S1: SQL permits attributes names to be repeated in the same relation S2: The power of DRC and TRC is same as that of relational algebra S3: The project operation (pi) cometimes only distributes over join ... (D) <T,F,T> Sol. I dont understand what it is meant by S3. I feel first two are false.
Which of the following statements are TRUE/FALSE?S1: SQL permits attributes names to be repeated in the same relationS2: The power of DRC and TRC is same as that of relat...
GateAspirant999
2.3k
views
GateAspirant999
asked
Sep 15, 2016
Programming in C
relational-calculus
relational-algebra
sql
+
–
3
votes
2
answers
251
UGC NET CSE | June 2016 | Part 3 | Question: 9
Consider the relations $R(A, B)$ and $S(B, C)$ and the following four relational algebra queries over R ans S $\pi_{A, B} (R \bowtie S)$ $R \bowtie \pi_B(S)$ $R \cap (\pi_A(R) \times \pi_B (S))$ ... III and IV are the same query II, III and IV are the same query I, II and IV are the same query I, II and III are the same query
Consider the relations $R(A, B)$ and $S(B, C)$ and the following four relational algebra queries over R ans S$\pi_{A, B} (R \bowtie S)$$R \bowtie \pi_B(S)$$R \cap (\pi_A(...
go_editor
5.7k
views
go_editor
asked
Aug 17, 2016
Databases
ugcnetcse-june2016-paper3
databases
relational-algebra
+
–
5
votes
2
answers
252
UGC NET CSE | December 2013 | Part 3 | Question: 56
Consider the following schemas: Branch=(Branch-name, Assets, Branch-city) Customer = (Customer-name, Bank name, Customer-city) Borrow = (Branch-name, Loan number, Customer account-number) Deposit = (Branch-name, Account-number, Customer-name, ... $\sigma_{customer-name} (\pi_{balance > 10000^{(Borrow)}}$)
Consider the following schemas:Branch=(Branch-name, Assets, Branch-city)Customer = (Customer-name, Bank name, Customer-city)Borrow = (Branch-name, Loan number, Customer a...
go_editor
6.9k
views
go_editor
asked
Jul 29, 2016
Databases
ugcnetcse-dec2013-paper3
databases
relational-algebra
+
–
5
votes
3
answers
253
ISRO2008-33
The join operation can be defined as a cartesian product of two relations followed by a selection a cartesian product of two relations a union of two relations followed by cartesian product of the two relations a union of two relations
The join operation can be defined asa cartesian product of two relations followed by a selectiona cartesian product of two relationsa union of two relations followed by c...
go_editor
5.1k
views
go_editor
asked
Jun 12, 2016
Databases
isro2008
databases
relational-algebra
+
–
8
votes
5
answers
254
ISRO2007-52
Which operation is used to extract specified columns from a table? Project Join Extract Substitute
Which operation is used to extract specified columns from a table?ProjectJoinExtractSubstitute
go_editor
4.5k
views
go_editor
asked
Jun 10, 2016
Databases
isro2007
databases
relational-algebra
+
–
2
votes
2
answers
255
ISI2011-PCB-CS-5a
Consider relations $R(A, B)$ and $S(B, C)$. Find a propositional formula $\phi$ such that the following two relational algebra expressions produce the same answer. $\pi_{A,B}(\sigma_\phi(R \bowtie S))$ $R \cap ({\rho_T(A)}(\pi_C(S)) \times \pi_B(S))$
Consider relations $R(A, B)$ and $S(B, C)$. Find a propositional formula $\phi$ such that the following two relational algebra expressions produce the same answer.$\pi_{A...
go_editor
763
views
go_editor
asked
Jun 3, 2016
Databases
descriptive
isi2011-pcb-cs
databases
relational-algebra
+
–
1
votes
3
answers
256
ISI2012-PCB-CS-6a
Consider a LIBRARY database consisting of the following entity sets: Book (bookid, title, publishername) Book authors (bookid, authorname) Publisher (publishername, address, phonenumber) Bookcopies (bookid, accessionnumber) Book loans (bookid, cardnumber, issuedate, ... the borrowers who do not have any book issued. Hence write an equivalent SQL statement for the above query.
Consider a LIBRARY database consisting of the following entity sets:Book (bookid, title, publishername)Book authors (bookid, authorname)Publisher (publishername, address,...
go_editor
788
views
go_editor
asked
Jun 3, 2016
Databases
descriptive
isi2012-pcb-cs
databases
relational-algebra
sql
+
–
2
votes
1
answer
257
ISI2015-PCB-CS-7
Consider the following schema: SUPPLIER (supId : integer, supName : string, supAddress : string) PARTS (partId : integer, partName : string, partColour : string) CATALOG (supId : integer, partId : integer, price : real) The key fields are ... relational algebra using some or all of the following operators: SELECT, PROJECT, JOIN, CARTESIAN PRODUCT, UNION, INTERSECTION, DIFFERENCE.
Consider the following schema:SUPPLIER (supId : integer, supName : string, supAddress : string) PARTS (partId : integer, partName : string, partColour : string) CATALOG (...
go_editor
960
views
go_editor
asked
May 30, 2016
Databases
descriptive
isi2015-pcb-cs
databases
sql
relational-algebra
+
–
1
votes
1
answer
258
DB \ relational algebra
Desert_Warrior
428
views
Desert_Warrior
asked
May 24, 2016
Databases
relational-algebra
databases
+
–
3
votes
2
answers
259
DB\ ER to relational model
Desert_Warrior
818
views
Desert_Warrior
asked
May 24, 2016
Databases
databases
er-diagram
relational-algebra
+
–
2
votes
2
answers
260
tuples
Sourabh Kumar
413
views
Sourabh Kumar
asked
May 21, 2016
Databases
relational-algebra
+
–
2
votes
1
answer
261
validity of relational algebra query
Let R and S be two relations, and l be an attribute common to R and S. Let c be a condition over the attributes common to R and S. Prove or disprove the following:
Let R and S be two relations, and l be an attribute common to R and S.Let c be a condition over the attributes common to R and S. Prove ordisprove the following:
vix28
479
views
vix28
asked
Apr 26, 2016
Databases
relational-algebra
+
–
26
votes
3
answers
262
GATE CSE 1992 | Question: 13b
Suppose we have a database consisting of the following three relations: ... are liked by each customer. Express the following query in relational algebra: Print the hotels the serve the snack that customer Rama likes.
Suppose we have a database consisting of the following three relations:$$\begin{array}{|c|c|} \hline \text {FREQUENTS} & \text {(CUSTOMER, HOTEL)} \\\hline \text {SERVES}...
go_editor
3.6k
views
go_editor
asked
Apr 24, 2016
Databases
gate1992
databases
relational-algebra
normal
descriptive
+
–
2
votes
1
answer
263
Determining a given subset is partition or not?
Which of these collections of subsets are partitions of the set of bit strings of length 8? (a) the set of bit strings that end with 00, the set of bit strings that end with 01, the set of bit strings that end with 10, and the ... I can't find any overlapping elements between different partition of (b) and if there is any, then why not in (a).
Which of these collections of subsets are partitions of the set of bit strings of length 8?(a) the set of bit strings that end with 00, the set of bit strings that end wi...
SomnathKayal
1.2k
views
SomnathKayal
asked
Apr 5, 2016
Set Theory & Algebra
relational-algebra
relations
equivalence-class
set-theory&algebra
+
–
0
votes
3
answers
264
Rosen 9.1 - 48
How many transitive relations are there on a set with n elements if (a) n = 1 (b) n = 2 (c) n= 3 Answer has not been given. How do I calculate number of transitive relations? For n = 1, there will be 1 transitive relation. For n = 2, If $(a,b) \varepsilon R$ and $(b,a)\varepsilon R$ the $(a,a)\varepsilon R$ and $(b,b)\varepsilon R$. But how can we calculate this?
How many transitive relations are there on a set with n elements if(a) n = 1(b) n = 2(c) n= 3Answer has not been given. How do I calculate number of transitive relations?...
SomnathKayal
1.6k
views
SomnathKayal
asked
Apr 4, 2016
Set Theory & Algebra
set-theory&algebra
relations
relational-algebra
+
–
3
votes
2
answers
265
maximum no of tuples
Consider the relation R1( P, Q, R, S ) and R2 ( R, G, T, U ) The relation R1 has 20 tuples and R2 has 10 tuples then maximum number of tuples in R1 ⟕ R2 is .......................?
Consider the relation R1( P, Q, R, S ) and R2 ( R, G, T, U )The relation R1 has 20 tuples and R2 has 10 tuples then maximum number of tuples in R1 ⟕ R2 is ...........
saket nandan
2.4k
views
saket nandan
asked
Mar 21, 2016
Databases
relational-algebra
databases
query
natural-join
+
–
8
votes
1
answer
266
maximum no of touples
Consider the following relation: R (A B C) A primary key with 100 tuples. S (E F G) E primary key with 50 tuples. T (AE D) AE primary key with 80 tuples. U (D G H) H primary key with 10 tuples. The maximum number of possible records in the result of (R JOIN S JOIN T JOIN U)
Consider the following relation:R (A B C) A primary key with 100 tuples.S (E F G) E primary key with 50 tuples.T (AE D) AE primary key with 80 tuples.U (D G H) H primary ...
saket nandan
1.1k
views
saket nandan
asked
Mar 21, 2016
Databases
databases
query
relational-algebra
+
–
1
votes
1
answer
267
MadeEasy Test Series: Databases - Relational Algebra
Consider the following schema and relational algebra query. Student (Sid, Sname, Sage) Course (Cid, CourseName, Credit) Enrolled (Sid, Cid) πSid(Student) - πSid(σcredit<5 (course) Enrolled) Which of the following is correct about ... should be correct one?? nut 2nd one is given correct plz someone tell me why Second option not first one.
Consider the following schema and relational algebra query.Student (Sid, Sname, Sage)Course (Cid, CourseName, Credit)Enrolled (Sid, Cid) ...
khushtak
1.2k
views
khushtak
asked
Jan 25, 2016
Databases
made-easy-test-series
databases
relational-algebra
+
–
4
votes
1
answer
268
MadeEasy Test Series: Databases - Relational Algebra
Consider the relations R(A, B) and S(B,C). Which one of the following can evaluate differently than the others? a) πA(R) - ( πA (R - πA,B(R⋈S))) b) πA(R∩ (πA(R) x πB(S))) c) πA( (R x πc(S)) ∩ (πA(R) ... attribute. option c and d represent same query i am not sure about a and b i think option a is same query what are both options representing ??
Consider the relations R(A, B) and S(B,C). Which one of the following can evaluate differently than the others?a) πA(R) - ( πA (R - πA,B(R⋈S)))b) πA(R∩ (πA(R)...
khushtak
1.1k
views
khushtak
asked
Jan 25, 2016
Databases
made-easy-test-series
databases
relational-algebra
+
–
1
votes
1
answer
269
Relational Algebra
Whats wrong with option A.
Whats wrong with option A.
Pradip Nichite
448
views
Pradip Nichite
asked
Jan 21, 2016
Databases
databases
relational-algebra
+
–
1
votes
1
answer
270
Sql and relational algebra
Can anyone suggest me how to learn about sql and relational algebra and calculus for gate? as i feel this is an important topic and one 2 marks ques will be asked. I can understand easy problems and problems with solutions. Anything worth regarding this topic?
Can anyone suggest me how to learn about sql and relational algebra and calculus for gate?as i feel this is an important topic and one 2 marks ques will be asked. I can u...
khushtak
848
views
khushtak
asked
Jan 20, 2016
Databases
databases
relational-calculus
relational-algebra
sql
+
–
Page:
« prev
1
...
4
5
6
7
8
9
10
11
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register