Thanks,
I've solved this now - I just made another function to COUNT the rows returned by the first function.
EG:
SELECT sg.id, sg.title, dbo.CountStoresInGroup(sg.id) AS storeCount
FROM StoreGroups sg
ORDER BY sg.title
Thanks,
Dave
Hi! I'm trying to return the number of rows returned by a UDF which returns a table:
The UDF returns a TABLE defined with only 1 column (storeID INT)
I want to get the number of rows returned by the UDF:
StoreIDListForGroup( <groupID> )
Example usage that works:
SELECT sg.id, sg.title...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.