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 |
sqlfresher2k7
Aged Yak Warrior
623 Posts |
Posted - 2008-06-04 : 14:34:30
|
[code]TableA-------sqid sqlnm STPID stID----- ------- ----- -------- 16455 Fruits 13 5016457 Apples 12 5016488 grapes 12 50TableB-------HPID Msqid Dsqid---- ------ ------16458 16455 1645716489 16455 16488Tablec------CID sqid SNID Bid stID------ ----- ---- ---- ------16498 16457 1 Smith 5016505 16457 1 Smith 50**I need count(SNID) tablec I need the below output:StId sqlnm sqlnm Count------- ----- ----- ----50 Fruits Apples 2Thanks for your help in advance !![/code] |
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
|
|
|
|