The sample code that I am referring to is as follows:
SELECT top(3) * FROM AcceptorRequests
WHERE Terminal IN ('70270191','70347395')
ORDER BY Id DESC
But it works for only one terminal number. I want to display three end records for each terminal.