Subject | Re: [firebird-support] Re: Master-detail group by problem |
---|---|
Author | Dimitry Sibiryakov |
Post date | 2009-04-19T16:24:57Z |
>> Something like "Select .. from master where Master.MasterID =I don't understand what you exactly need, but RTFM HAVING and
>> Detail.MasterID and (select number of rows from detail where Master.MasterID
>> = Detail.MasterID) = 1" in "pseudo SQL".
>>
>
> This is of course "... (select number of rows distinct SecondaryMasterID
> from ...) ".
COUNT([DISTINCT]).
SY, SD.