It is not ok to plagiarizing someone.
That person spent time in research, in testing, writing and then , another person comes and steals a hole work...
SELECT
low,
ROW_NUMBER() OVER(PARTITION by low ORDER BY number) as aRowNumber
FROM MASTER..spt_values
WHERE TYPE='p'