Filter Derived Column!!!

  • Is this possible?

    Select CategoryID, dbo.getNoOfItems(CategoryID) AS NoOfItems where ParentID = @ParentID and NoOfItems > 5

    getNoOfItems is a udf which returns an int value after complex calculations.

    Thanks in advance.

  • Select CategoryID, dbo.getNoOfItems(CategoryID) AS NoOfItems where ParentID = @ParentID and dbo.getNoOfItems(CategoryID)  > 5

     

    I hope this would work.

     

    Cheers,

    Ganesh

     

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

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