The Distinct Top will work with the SQL server . Iv'e taken this command from the Book online of SQL server. Please try it with the necessary logic.<br><br>SELECT DISTINCT TOP 10 ShipCity, ShipRegion <br><br>FROM Orders <br><br>ORDER BY ShipCity <br><br><br>Thanx<br>Siddhartha Singh<br><A HREF="mailto:ssingh@aztecsoft.com">ssingh@aztecsoft.com</A><br><br><br><br>More help<br><br>query specification> ::= <br> SELECT [ ALL ¦ DISTINCT ]<br> [ {TOP integer ¦ TOP integer PERCENT} [ WITH TIES] ] <br> <select_list><br> [ INTO new_table ]<br> [ FROM {<table_source>} [,...n] ]<br> [ WHERE <search_condition> ]<br> [ GROUP BY [ALL] group_by_expression [,...n] <br> [ WITH { CUBE ¦ ROLLUP } ]<br> ]<br> [ HAVING <search_condition> ]<br>