| Author |
Topic |
|
mike31853185
Starting Member
1 Post |
Posted - 2011-11-23 : 17:03:53
|
| Hi Folks ... Thank you for your generosity!MS SQL2000: (vbscript inside .asp)existing table:a,b,c,d,e,MbrCity,MbrName-------------------------a,b,c,d,e,detroit,toma,b,c,d,e,Detroit,stevea,b,c,d,e,detroit,larrya,b,c,d,e,new york,suea,b,c,d,e,New York,bettya,b,c,d,e,New York,jeanniea,b,c,d,e,new York,lorrainea,b,c,d,e,houston,samwant:new york 4detroit 3houston 1(ordered by largest # of member cities a bonus :)Thank you ! |
|
|
RickD
Slow But Sure Yak Herding Master
3608 Posts |
Posted - 2011-11-24 : 04:33:46
|
| So, how much you willing to pay for this? If this is in SQL 2000, I guess you are getting paid for your work, so you would think you had a rudimentary knowledge of your job, if not, then you really should pay someone who does.If you want help, why not help yourself? You can look up COUNT() and GROUP BY surely? Also you may want ORDER BY.http://msdn.microsoft.com/en-us/library/ms130214.aspxThis is not for SQL 2000, but if you have SQL 2000 installed, then it is all in the help file. |
 |
|
|
|
|
|