Find the names of all brokers who have made money in all accounts assigned to them.

Write the query of Exercise 5.22 using TRC and DRC.

a. TRC:


{B.Name | Broker(B) AND
?A ? Account (A.BrokerId= B.Id ? A.Gain> 0)


b. DRC:

{Name |?BrokerId (Broker(BrokerId, Name) AND
?Acc# ?Gain (Account(Acc#, BrokerId, Gain) ? Gain> 0 )) }

Computer Science & Information Technology

You might also like to view...

The read/write heads are the part of the hard drive that actually transmit or receive the 1s and 0s to or from the hard drive

Indicate whether the statement is true or false

Computer Science & Information Technology

Mobile web browsers cannot display the content of a website unless the pages are coded specifically to display on a mobile device.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology