0 votes 0 votes relation parts(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? Databases databases relational-calculus tuple-relational-calculus + – aditi19 asked Nov 26, 2018 aditi19 408 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 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")} Muffin answered Mar 4, 2019 Muffin comment Share Follow See all 0 reply Please log in or register to add a comment.