Subject | Re: [ib-support] DISTINCT |
---|---|
Author | Lucas Franzen |
Post date | 2001-08-23T21:28:38Z |
Mike Grover schrieb:
- write a stored procedure:
- or give:
SELECT * FROM EXPERIAN WHERE
<Your_primary_key_field> =
( SELECT MIN ( <Your_primary_key_field> ) FROM EXPERIAN
WHERE ZIP='66846' AND ZIP4='1160' )
a try.
Luc.
>You can:
> Ok, I see.
>
> what I am wanting to do is just get the first record that matches a query.
>
> is there a way to get just the first matching record and not even read the
>
> rest of the matching records?
- write a stored procedure:
- or give:
SELECT * FROM EXPERIAN WHERE
<Your_primary_key_field> =
( SELECT MIN ( <Your_primary_key_field> ) FROM EXPERIAN
WHERE ZIP='66846' AND ZIP4='1160' )
a try.
Luc.