Stored procedure for selecting multiple records
- by padmavathi
I need to select records say 2000 from a table with a matching timestamp from c# .net code.
Eg:
SELECT *
FROM ITEMDATA_TABLE
WHERE ITEMNAME='Item1' and TimeStamp='2010-04-26 17:15:05.667'
The above query has to execute for 2000 items more for the same timestamp.
for this we can use
SELECT *
FROM ITEMDATA_TABLE
WHERE ITEMNAME in…