Add text to first record part 2 case in where clause...

  • So I've learned to use a union to add the 'all' to my list

    I am now trying to use a case in my where clause

    WHERE Otherstuffgoeshere...

    AND

    case when @Location <> 'All'' then (Location.Code = @Location)

  • This is a duplicate post. I have responded to your first post:

    http://www.sqlservercentral.com/Forums/Topic1514453-150-1.aspx

    Let's use that one going forward.



    Microsoft Certified Master - SQL Server 2008
    Follow me on twitter: @keith_tate

    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

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

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