Re: S.O.D.A. database Query API - call for comments
From: (wrong string) öder <per_at_nospam.mimer.se>
Date: 28 Apr 2001 22:08:46 GMT
Message-ID: <Xns909211C84F19permimerse_at_192.71.97.199>
Date: 28 Apr 2001 22:08:46 GMT
Message-ID: <Xns909211C84F19permimerse_at_192.71.97.199>
Lee Fesperman <firstsql_at_ix.netcom.com> wrote in <3AEB2DB6.164F_at_ix.netcom.com>:
>Carl Rosenberger wrote:
>>
>> Please feel free to write an SQL statement for the following example,
>> by using standard facilities if you wish:
>>
>> class Person
>> CommunicationMedium[] comMedia;
>> class CommunicationMedium
>> class Phone extends CommunicationMedium
>> class MobilePhone extends Phone
>>
>> "I would like to know all Persons, that don't have a mobile phone."
>
>If you insist...
>
>SELECT *
>FROM person
>WHERE person_id NOT IN
> (SELECT person_id
> FROM person_comm_medium
> WHERE type = 'mobile phone')
/Per Schröder Received on Sun Apr 29 2001 - 00:08:46 CEST