October 28, 2011 at 5:47 am
Hi,
Table Name - EnergyMeter
Filed Name - Meter_Id
Total Records - 6
using stored procedure - how can read data for row 1, row 2, row 3 ...row 6.?
Thanks
ananda
October 28, 2011 at 5:49 am
Why? What's the goal here?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
October 28, 2011 at 8:12 am
ananda.murugesan (10/28/2011)
Hi,Table Name - EnergyMeter
Filed Name - Meter_Id
Total Records - 6
using stored procedure - how can read data for row 1, row 2, row 3 ...row 6.?
Thanks
ananda
For the information given...
SELECT TOP 6
Meter_ID
FROM EnergyMeter
ORDER BY Meter_ID
But, I agree with Gail... this smacks of additional requirents you haven't identified. What is it that you're actually trying to do?
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply