Recent questions tagged relational-calculus

0 0 votes
0 0 answers
523
523 views
If r is a relation in relational data model and a1,a2,..an are the attributes of relation r, what is the cardinality of r expressed in terms of domain of attributes?(a) |...
1 1 vote
0 0 answers
693
693 views
Which of the following relational calculus expressions is not safe ?$\left\{t \mid \exists u \in R_1\left(t[A] = u[A]\right) \land \neg \exists s \in R_2 \left(t[A] = s[A...
2 2 votes
1 1 answer
643
643 views
An expression in the domain relational calculus is of the form:$\{ P(x_1,x_2,\dots ,x_n)|< x_1,x_2,\dots ,x_n \}$$\{ x_1,x_2,\dots ,x_n |< x_1,x_2,\dots ,x_n \}$$\{ x_1,...
1 1 vote
1 1 answer
1.4k
1.4k views
The relational algebra expression equivalent to the tuple calculus expression$\{t\mid t ​ \in ​ r \land (t[A]=10 \land t[B]=20)\}$ is$\sigma_{(A=10\:\lor\:B=20)}(r)$$\sig...
3 3 votes
3 3 answers
1.9k
1.9k views
If $R$ is a relation in Relational Data Model and $A_1,A_2,\dots A_n$ are the attributes of relation $R$, what is the cardinality of $R$ expressed in terms of domain of a...
4 4 votes
5 5 answers
5.6k
5.6k views
Which of the following has same expressive power with regard to relational query language?Rational algebra and domain relational calculusRelational algebra and tuples rel...
1 1 vote
2 2 answers
2.1k
2.1k views
Suppliers(sid, sname, address)Parts(pid, pname, color)Catalog(sid, pid, cost)Find the pids of the most expensive parts supplied by suppliers named Yosemite Sham
0 0 votes
1 1 answer
1.5k
1.5k views
Given relationcatalog(sid, pid, cost)Find pairs of sids such that the supplier with the first sid charges more for some part than the supplier with the second sidwhat is ...
5 5 votes
3 3 answers
12.1k
12.1k views
Given two relations R1 and R2, where R1 contains N1 tuples, R2 contains N2 tuples, and N2>N1 0, give the minimum and maximum possible sizes (in tuples) for the result rel...
0 0 votes
0 0 answers
1.1k
1.1k views
Consider the following relations:$\text{STD_CHOICES } (\underline{\text{Student_ID}}, \underline{\text{Course_ID}}, \text{Semester})$ and$\text{COURSE_ASSIGN} (\underline...
0 0 votes
0 0 answers
878
878 views
Let R = (A, B) and S = (A, C), and let r (R) and s(S) be relations.Write SQL Queries equivalent to the following domain relational-calculus expressions:a. {< a | $\exist...
0 0 votes
1 1 answer
1.2k
1.2k views
Let R = (A, B) and S = (A, C), and let r (R) and s(S) be relations.Using the special constant null, write tuple-relational-calculus expressionsequivalent to each of the f...
0 0 votes
0 0 answers
864
864 views
Give a tuple-relational-calculus expression to find the maximum value inrelation r (A).
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...
1 1 vote
0 0 answers
660
660 views
Let R = (A, B) and S = (A,C), and let r (R) and s(S) be relations.Writeexpressions in relational algebra for each of the following queries:a. {< a | ∃ b (< a, b ∈ r ∧ b...
1 1 vote
0 0 answers
1.3k
1.3k views
Let R = (A, B, C), and let r1 and r2 both be relations on schema R. Give an expression in the domain relational calculus that is equivalent to each of the following:a. $\...
0 0 votes
1 1 answer
1.4k
1.4k views
SQL Aggregation is possible by extended relational algebra operators? SQL grouping is possible in relational algebra. Relational algebra is equivalent to safe relational ...
0 0 votes
0 0 answers
558
558 views
Given i= 0, j = 1, k = – 1x = 0.5, y = 0.0What is the output of given ‘C’ expression ?x * 3 & & 3 || j | kexplanation please….
0 0 votes
1 1 answer
614
614 views
relationparts(pid, pname, color)catalog(sid, pid, cost)find the sids of suppliers who supply every red part.can someone give the TRC and DRC expression for this?
0 0 votes
1 1 answer
860
860 views
Answer is all Doubt -how (1,4) is present in O/p
0 0 votes
1 1 answer
618
618 views
give domain relation calculus expressionworks(person-name, company-name, salary)find the names of all employees who earn more than every employee of Small Bank Corporatio...
0 0 votes
0 0 answers
811
811 views
Online Site For practicing Relational Algebrahttps://dbis-uibk.github.io/relax/calc.htm
0 0 votes
0 0 answers
295
295 views
How we find the given calculus is safe or not
0 0 votes
1 1 answer
1.2k
1.2k views
I think it should be option a)All query $1,3,4$ are equivalent but $2$ is not equivalent.Query $2$ should be $\prod \text{Room no,hotel no,type,price}(\sigma \text{type='...
1 1 vote
2 2 answers
2.6k
2.6k views
Relation Schema : Employee (Name, Ssn, Bdate, Address, Dept_number)Project (Pname, Pno, Dept_number)WorksOn (Essn, Pno, Hours)List the names of employees who work on all ...