Subject | RE: [ib-support] Calling Stored Procedure in From section of Select Statement |
---|---|
Author | sugi |
Post date | 2003-05-08T23:37:39Z |
Dear mr Arno Brinkman,
I'm digging up the old archives and I have a follow up question to one
of your suggestions:
FORMATNAME() to return multiple fields? In your example it worked
because we only need ONE field from the selectable StoredProc.
Thanks in advance,
sugi.
I'm digging up the old archives and I have a follow up question to one
of your suggestions:
> You can also use the procedure in a sub-select.What is the proper syntax if we want the selectable StoredProc
>
> SELECT
> ADDRESS.STREET1,
> ADDRESS.STREET2,
> ADDRESS.CITY,
> ADDRESS.STATECD,
> ADDRESS.ZIPCODE,
> ADDRESS.OWNERID,
> PERSON.FIRSTNAME,
> PERSON.MIDDLENAME,
> PERSON.LASTNAME,
> (SELECT FULLNAME FROM FORMATNAME(PERSON.FIRSTNAME,
> PERSON.MIDDLENAME,
> PERSON.LASTNAME, 'LNF'))
> FROM
> PERSON
> JOIN ADDRESS ON (PERSON.PERSONID = ADDRESS.OWNERID)
> WHERE
> ADDRESS.OWNERID IS NOT NULL
FORMATNAME() to return multiple fields? In your example it worked
because we only need ONE field from the selectable StoredProc.
Thanks in advance,
sugi.