query table UDF with a subquery?

  • Ok, does any know if/ifnot/how table-type udf's could be joined as part of another query?

    Like:

    select a.*,b.*

    from mytable a, fn_myFunction(a.FK_ID) b

    where (a.PK_ID=1)

    My issue is (I think) that I'm relying on data extracted from the outer query to power the UDF. Anyway, I can't figure this out, so I thought I'd ask.

  • You can't do that in SQL Server 2000. In SQL Server 2005 you will be able to, using the APPLY operator.

    --
    Adam Machanic
    whoisactive

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply