Also I think you are going to have to implement an identity on this table otherwise there's no logical way of ordering it in the way you want (you don't want alphabetical or ascending / decending numerical order - you seem to want to order by when the value was inserted into the table).You'd need to do something like ....CREATE TABLE testTable ( [Id] INT IDENTITY(1,1) , [data] VARCHAR(50) , [value] INT)INSERT INTO testTable ([data], [value]) SELECT 'nirav', 12121INSERT INTO testTable ([data], [value]) SELECT 'bhaumik', 3345INSERT INTO testTable ([data], [value]) SELECT 'nishkal', 7676INSERT INTO testTable ([data], [value]) SELECT 'anirudhha', 697INSERT INTO testTable ([data], [value]) SELECT 'nishesh', 79876INSERT INTO testTable ([data], [value]) SELECT 'donkey', 12345INSERT INTO testTable ([data], [value]) SELECT 'hkhhl', 645INSERT INTO testTable ([data], [value]) SELECT 'yahoo', 46643INSERT INTO testTable ([data], [value]) SELECT 'live', 86855INSERT INTO testTable ([data], [value]) SELECT 'gongo', 3668INSERT INTO testTable ([data], [value]) SELECT 'google', 9880-- show the tableSELECT * FROM testTable ORDER BY [ID] ASC
Note now that an integer value has been inserted for each row in the [Id] column. You can use this ID to uniquely identify the row for deletes etc and whenver you insert a new row it will get a new highest Id value.Please read up on identity in books on line for a more detailed explanation.http://msdn.microsoft.com/en-us/library/ms130214.aspxHope this helps.-------------Charlie