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 |
|
ramyasre
Starting Member
16 Posts |
Posted - 2011-04-28 : 00:47:25
|
| Hi, The following are two tablesLocationCode FormCode________________________ 10201 op00810201 op00910201 op01010201 ip00310201 ip00510202 op00810202 op010Another Table isFormCode Score LocationCode___________________________________op008 11 10201op010 20 10201op008 4 10201op009 3 10201op008 7 10201Now I want output as followsFormCode TotalForms LocationCode________________________________________op008 3 10201op009 1 10201 op010 1 10201ip003 0 10201ip005 0 10201op008 0 10202op010 0 10202 |
|
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
|
|
|
|
|