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.
| Author |
Topic |
|
uhertz
Starting Member
2 Posts |
Posted - 2011-08-29 : 05:48:52
|
| Have a customer and phone table.Linked by a key, custidEach customer has one or more phone numbersWant to get a list of all custoemrs having >3 numbers |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2011-08-29 : 07:01:48
|
| select c.customer_name from customer as c inner join phone as pon c.key=p.key and c.custid=p.custidgroup by c.customer_name having count(*)>3MadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|