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