Results 1 to 3 of 3

Thread: Case statement in a multi-statement table-valued function

  1. #1
    Join Date
    Aug 2007
    Posts
    6

    Case statement in a multi-statement table-valued function

    Is there any way that I can use a Case statement in a multi-statement table-valued function? I have a function that I am creating that will return a table with values that are calculated differently based on certain conditions. I would rather not write a different function for every possibility. I keep getting syntax errors with everything I try to do. Any ideas?

  2. #2
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    Can you post what you have so far.

  3. #3
    Join Date
    Aug 2007
    Posts
    6
    I got it working, it was a simple thing that I missed. But thanks anyway.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •