Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selecting distinct rows 1

Status
Not open for further replies.

rojo

Programmer
Joined
Nov 8, 2001
Messages
3
Location
US
I'm trying to convert a DB2 query to use in SQL server, any help on the exact syntax would be appreciated, here's the DB2 query:
select distinct column_x
from table_y
fetch first n rows only

thanks...
 
select distinct top 100 column_x from table_y
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top