Question: Answer by using Tuple Relational Calculus. Consider the Customers-Agents-Products (CAP) database with schema below.CUSTOMERS (cid, cname, city, discnt), AGENTS (aid, aname, city, percent), PRODUCTS (pid,
Answer by using Tuple Relational Calculus.
Consider the Customers-Agents-Products (CAP) database with schema below.CUSTOMERS (cid, cname, city, discnt), AGENTS (aid, aname, city, percent), PRODUCTS (pid, pname, city, quantity, price), ORDERS (ordno, month, cid, aid, pid, qty, dollars). 1.Get the names of agents who have never ordered a product produced in the same city they reside in. 2.Get the names of agents who have only ordered products for customers living in the same city that they reside in.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
