Example of Choosing a Certain Number of Numbered Records in MSSQL
This example can be useful when you need to choose a certain number of numbered records from somewhere and insert them into a temporary table or table variable. Example: select number as Section from master..spt_values where type='L'…