T-SQL A problem with SELECT TOP (case [...])
I have query like that:

(as You see I'd like to retrieve 50% of total rows or first 100 rows etc)

    //@AllRowsSelectType is INT

     SELECT TOP (
		case @AllRowsSelectType
		    when 1 then 100 PERCENT	
		    when 2 then 50 PERCENT
            when 3 then 25 PERCENT
            when 4 then 33 PERCENT
            when 5 then 50
            when 6 then 100
            when 7 then 200	
	    end
                ) ROW_NUMBER() OVER(ORDER BY [id]) AS row_num, a,b,c etc

why have I the error : **"Incorrect syntax near the keyword 'PERCENT'."** on line "when 1 [...]"
T-SQL A problem with SELECT TOP (case [...])
===

I have query like that:

(as You see I'd like to retrieve 50% of total rows or first 100 rows etc)

    //@AllRowsSelectType is INT

     SELECT TOP (
		case @AllRowsSelectType
		    when 1 then 100 PERCENT	
		    when 2 then 50 PERCENT
            when 3 then 25 PERCENT
            when 4 then 33 PERCENT
            when 5 then 50
            when 6 then 100
            when 7 then 200	
	    end
                ) ROW_NUMBER() OVER(ORDER BY [id]) AS row_num, a,b,c etc

why have I the error : **"Incorrect syntax near the keyword 'PERCENT'."** on line "when 1 [...]"