Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Selecting limited rows

Author  Topic 

htrivedi
Starting Member

10 Posts

Posted - 2001-08-16 : 13:34:27
i have two tables
table 1 has about 500000 records and
table 2 has 150 distinct records

table1 : custid, customer_name, city_code
table 2 : city_code, city_name, State
need to bring only 10 distinct custid, customer_name, city_code from table 1 for each city_code listed in table2




Edited by - htrivedi on 08/16/2001 13:42:15

Edited by - htrivedi on 08/16/2001 13:42:58
   

- Advertisement -