1: 2: 3: 4: 5: 6: 7: 8: 9:
SELECT * FROM (SELECT e.EmailID, e.Name, ROW_NUMBER() OVER(ORDER BY e.ID) as RowNum,DataSent FROM tblEmails e LEFT OUTER JOIN tblTemplates t ON e.TemplateID = t.TemplateID ) as EmailInfo WHERE RowNum Between 1 AND 100 order by Datesent