As the following SQL, it will select the 100 to 110th result matching the search condition. But I think the SQL is ugly (using twice condition where [name] like '%%'
) and there should be some brief statement to reach the same goal.
SELECT top 10 [name], [field1], [field2]
FROM [FrontPageInformation]
WHERE [name] LIKE '%%' AND [name] NOT IN
(SELECT TOP 100 [name]
FROM [EngineeringMedicine].[dbo].[FrontPageInformation]
WHERE [name] LIKE '%%')
Could anyone help?
Great thanks,
Wa