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 2005 Forums
 Transact-SQL (2005)
 Need a sql Query

Author  Topic 

nishitha
Starting Member

1 Post

Posted - 2011-06-10 : 13:10:53
Hi,

My name is nishitha,can anyone help me.
I had a customer table with 4 fields(custid,custname,custaddrs,zipcode) i want to add 50 or 100 records to that table,and i need to get result set as select custid,name and zipcode and for each zipcode i want to get more than 10 customers and also want total number of customers in zipcode

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2011-06-10 : 14:37:52
Have a look at GROUP BY and HAVING
Go to Top of Page
   

- Advertisement -