J
jonathan
hi all,
was wondering if i can do user input variable x rather
than fixed value on SELECT TOP.what i did at the moment is
fixed one whioch sql shown below;
SELECT TOP 1 table.* FROM(SELECT TOP 60 PERSENT table.*
from table) AS x ORDER BY id DESC;
now is it possible that i can make that x as input value
by user so that it would be somthing like this
SLECT TOP [input persent]*count(table.[id]) table.* FROM
table
thanks
was wondering if i can do user input variable x rather
than fixed value on SELECT TOP.what i did at the moment is
fixed one whioch sql shown below;
SELECT TOP 1 table.* FROM(SELECT TOP 60 PERSENT table.*
from table) AS x ORDER BY id DESC;
now is it possible that i can make that x as input value
by user so that it would be somthing like this
SLECT TOP [input persent]*count(table.[id]) table.* FROM
table
thanks