Subscriber
|
Call
|
Expressed with the usual notation:
Subscriber(Snr, Name, Address, Category)The table Subscriber has 105 rows. The table Call has one million (106) rows.
Call(Cnr, Caller, Called, Start, End, Duration)
Queries like these will be used fairly often:
select snr from subscriber where name = 'Anne' and address = '11 Any Rd'
select name, address from subscriber, call where subscriber.snr = call.caller and call.cnr = 2001
select sum(duration) from call where caller = 17