Question : count like items and if > 1 then into cursor

when I query MyTable I only want the field for ITEM if it has more than one record.

so, only 2 greater into cursor

I have several items so what is the best way to check as I run my SELECT?
Code Snippet:
1:
SELECT * from MyTable where ?

Answer : count like items and if > 1 then into cursor

Hmm, you should better specify what you need...

*-- Select two biggest Items
SELECT TOP 2 *
  FROM YourTable
  ORDER BY Item

*-- Select duplicate Items
SELECT Item, COUNT(*)
  FROM YourTable
  GROUP BY Item
  HAVING COUNT(*) > 1

So, some data example and result requested would help to understand.
Random Solutions  
 
programming4us programming4us