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 |
tlin5043
Starting Member
26 Posts |
Posted - 2004-02-12 : 04:55:28
|
hello, i'm a sql server babe,here's my problems,the raw data areACCOUNT CURRA USDA USDA USDA EUROB USDB USDB EUROC EUROC EUROBecause i wanna to know each account contains how many different currency. Then i want my report looks like as follows,ACCOUNT NoOfCurrA 2B 2C 1i'll appreciate if anyone can give any ideas. |
|
ditch
Master Smack Fu Yak Hacker
1466 Posts |
Posted - 2004-02-12 : 05:04:58
|
SELECT Account, COUNT(DISTINCT Curr) as NoOfCurrFROM MYTABLEGROUP BY ACCOUNT |
 |
|
robvolk
Most Valuable Yak
15732 Posts |
Posted - 2004-02-12 : 07:50:57
|
quote: i'm a sql server babe
Well, you're are certainly welcome at this site!Got any pics handy? |
 |
|
|
|
|