Recent questions tagged tuple-relational-calculus

0 0 votes
1 1 answer
66
66 views
Consider the relation $\mathrm{Sailors}(\mathrm{sid},\mathrm{sname},\mathrm{rating},\mathrm{age})$ and the following TRC expression: $$\{S\mid \neg(S\in \mathrm{Sailors})...
0 0 votes
1 1 answer
49
49 views
Consider $\mathrm{Student}(\mathrm{sid},\mathrm{name},\mathrm{univ}),\mathrm{Enrollment}(\mathrm{sid},\mathrm{cid}).$Using the above schema, which condition correctly cha...
0 0 votes
1 1 answer
46
46 views
Consider$\mathrm{Course}(\mathrm{cid},\mathrm{name},\mathrm{year},\mathrm{duration})$$\mathrm{Student}(\mathrm{sid},\mathrm{name},\mathrm{univ})$$\mathrm{Instructor}(\mat...
1 1 vote
1 1 answer
50
50 views
Using the same $\mathrm{Manager}$, $\mathrm{Stores}$, $\mathrm{Sales}$, and $\mathrm{Products}$ schema from the exam, define:$\mathrm{NailSale}(S)$ = store $S$ sold more ...
1 1 vote
1 1 answer
52
52 views
Consider $\mathrm{Manager}(\mathrm{NAME})$ and $\mathrm{Stores}(\mathrm{STORE\_ID},\mathrm{ADDRESS},\mathrm{REGION},\mathrm{MANAGER})$.Which TRC expression correctly retu...
1 1 vote
1 1 answer
152
152 views
Consider$\mathrm{STUDENT}(\mathrm{name},\mathrm{regno},\mathrm{gpa},\mathrm{level},\mathrm{dept})$$\mathrm{COURSE}(\mathrm{cno},\mathrm{cname},\mathrm{dept})$$\mathrm{TAK...
1 1 vote
1 1 answer
109
109 views
Consider$\mathrm{Product}(\mathrm{pid},\mathrm{name},\mathrm{brand},\mathrm{price},\mathrm{color})$.The SQL query is:SELECT DISTINCT name FROM Product p WHERE color = 'gr...
1 1 vote
1 1 answer
66
66 views
Consider$\mathrm{Store}(\mathrm{sid},\mathrm{store\_name},\mathrm{parent\_company})$$\mathrm{Branch}(\mathrm{sid},\mathrm{city},\mathrm{open24})$$\mathrm{Has\_Fruit}(\mat...
0 0 votes
1 1 answer
67
67 views
Consider$\mathrm{Breeders}(\mathrm{brdr\_id},\mathrm{brdr\_name},\mathrm{age})$$\mathrm{Breeds}(\mathrm{br\_id},\mathrm{br\_name},\mathrm{friendliness})$$\mathrm{Pedigree...
1 1 vote
1 1 answer
70
70 views
Consider $\mathrm{Pets}(\mathrm{pid},\mathrm{pname},\mathrm{weight})$.Which TRC expression returns only the weights of all pets whose name is $\mathrm{Tiny}$?$\{t\mid \ex...
2 2 votes
2 2 answers
851
851 views
Let there be two relations $X$ and $Y$ as shown. $X$ has three columns $P, Q$ and $R . Y$ has two columns $P$ and $S$.\[\textbf{X}\]\[\begin{array}{|c|c|c|}\hlineP & Q & ...
5 5 votes
4 4 answers
1.6k
1.6k views
Consider a relational database schema with two relations $R(P, Q)$ and $S(X, Y)$.Let $E=\{\langle u\rangle \mid \exists v \exists w\langle u, v\rangle \in R \wedge\langle...
0 0 votes
0 0 answers
576
576 views
Assume two relations $R(P,Q)$ and $S(X,Y)$.Consider the following TRC query:\[\{\,u \mid \exists v \exists w \ ((u,v) \in R \ \land\ (v,w) \in S)\,\}\]Which of the follow...
20 20 votes
4 4 answers
4.5k
4.5k views
Consider two relations describing teams and players in a sports league:teams(tid, tname): tid, tname are team-id and team-name, respectivelyplayers(pid,pname,tid): pid, p...
0 0 votes
1 1 answer
674
674 views
While learning Tuple Relational Calculus I found there is a substantial need to learn Logic (Discrete mathematics). But I have a loose hold over the topic, and I don't wa...
1 1 vote
2 2 answers
2.2k
2.2k views
Consider a relation r1(A, B, C), r2(C, D, E) and r3(E, G) with primary keys A, C and E respectively. Assume that r1 has 1000 tuples, r2 has 1500 tuples and r3 has 750 tup...
0 0 votes
1 1 answer
794
794 views
0 0 votes
0 0 answers
346
346 views
Please list out the best free available video playlist for Tuple Calculus from Databases as an answer here (only one playlist per answer). We'll then select the best play...
1 1 vote
2 answers 2 answers
792
792 views
Consider the following table.Create table TEST (one integer,two integer,primary key(one, two),check (one between 1 and 10),check (two between 1 and 5));How many tuples at...
2 2 votes
2 2 answers
2.8k
2.8k views
In a relational Schema, each tuple is divided into fields calledrelationsdomainsqueriesnone of these
1 1 vote
2 2 answers
930
930 views
Consider the join of a relation $R$ with relation $S$. If $R$ has $m$ tuples and $S$ has $n$ tuples, then the maximum size of join is$mn$$m+n$$(m+n)/2$$2(m+n)$
1 1 vote
1 1 answer
923
923 views
In tuple relational calculus $P1\to P2$ is equivalent to$\lnot P1 \lor P2$$P1 \lor P2$$P1 \land P2$$P1 \land \lnot P2$
0 0 votes
0 0 answers
632
632 views
We know that Relational Algebra is $Procedural$ whereas TRC and DRC are $Non-Procedural$ querry languages. But what exactly differentiates them? Please explain using some...
1 1 vote
0 0 answers
1.2k
1.2k views
Consider the employee database shown here. Give expressions in tuplerelational calculus and domain relational calculus for each of the followingqueries:a. Find the names ...
1 1 vote
1 1 answer
2.2k
2.2k views
Consider the relational database given below where the primary keys areunderlined. Give an expression in tuple relational calculus for each of thefollowing queries:a. Fin...