614 views

1 Answer

0 0 votes
For TRC -

{c.sid | catalog(c) AND (∃p)(parts(p) AND c.pid = p.pid AND p.color = "red")}

For DRC -

we will give each attribute a name parts(a,b,c) and catalog(d,e,f)

{d | (∃a)(∃e)(∃c)(catalog(def) AND parts(abc) AND e=a AND c="red")}
Position:
Show:

Related questions

1 1 vote
0 0 answers
1.2k
1.2k views
ajaysoni1924 asked Mar 26, 2019
1,156 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
ajaysoni1924 asked Mar 26, 2019
2,217 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
2 2 answers
2.6k
2.6k views
Harsh Kumar asked Jul 2, 2018
2,644 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 ...
0 0 votes
1 1 answer
733
733 views
Harsh Kumar asked Jul 1, 2018
733 views
I am not well versed in Predicate calculus and maybe, therefore, I am having problems writing queries in Tuple Relational Calculus and sometimes also in interpreting them...