110 pts.
 SQL Server 2008 tables
I  have 2 tables, tanle1 and table2

Can someone help for  SQL query  for table3 with 2 colums

colum 1  is select number from table1

for colum2 in table3  I need to get the total number of times  each number in colum1 of table1 apears in in colums n1,n2,n3,n4 of all events in table2 as shown in table3.

Pls. help

[table border="0" width="535" cellpadding="0" cellspacing="0" style="margin: auto auto auto 4.55pt; width: 401pt; border-collapse: collapse; mso-yfti-tbllook: 1184; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt;" class="MsoNormalTable"> [tbody] [tr style="height: 15pt; mso-yfti-irow: 0; mso-yfti-firstrow: yes;"> [td colspan="2" width="99" valign="bottom" style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0cm; width: 74pt; padding-top: 0cm; height: 15pt; background-color: transparent; border: #ece9d8;"> Table1

Software/Hardware used:
SQL 2008
ASKED: January 30, 2011  1:51 PM
UPDATED: January 31, 2011  2:25 PM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _