Show result values based on paramter value

  • I have a Stored Procedure with paramter @percentage
    I need to show the result ( records) based on two columns

    Example: Result set has columns
    Percentage , weekpercentage
    10                11
    26                12
    12                34

    If i choose @percentage =12

    I should check the above three records and choos the result.

    Example : result will be
    Percentage , weekpercentage
    26                12
    12                34

    How do i check this in query

  • WHERE Percentage=@percentage or WeekPercentage=@percnetage

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

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