Hello.
I have constructed a query that look for a certain status code between to times
My Query is as followed
What i want todo is get the next 20 records that come right after the result of the query or all grab all the records until it reaches code 143.Code:SELECT [ID],[NAME], [CELLNUMBER], [RECEIVED], [STATUS] FROM [Ctrack].[dbo].[POSLOG] WHERE CELLNUMBER=(SELECT Cellnumber FROM Ctrack.dbo.MobDat where id='Duy') AND STATUS='18' AND [MTIME] BETWEEN ('1337578200') AND ('1337580000') ORDER BY RECEIVED ASC
my problem is i don't know where to start looking.
Hope anyone can help
Regards Me




Reply With Quote