Check out example codes for "t sql dynamic top n query". It will help you in understanding the concepts better.

Code Example 1

SELECT TOP (@top) * FROM tablename;

Learn ReactJs, React Native from akashmittal.com