Originally posted by NeoPa
I had tried this Also Assume a Condition When i have Only one name in All the Rows Then this Also fails.Here is my Query
[CODE=SQL]SELECT Top 3 Name from Table001 Where Name NOT IN(Select Top 3 Name from Table001) UNION SELECT NAME FROM (SELECT NAME,COUNT(*) FROM Table001 GROUP BY NAME HAVING COUNT(*) >1)[/CODE]
And
[CODE=SQL]select name from (select top 3 * from Table001 where name not in (select top 3 name from Table001) and name in (select top 6 name from Table001) ) union SELECT NAME FROM (SELECT NAME,COUNT(*) FROM Table001 GROUP BY NAME HAVING COUNT(*) >1) where name in (select top 6 name from Table001)[/CODE]
By Doing all of this Now i Observed That Apart from RecordSet there is no way to fetch the data between two rows .Means have to write Some code too.
Thanx
Comment