SQL Server 2008 tables

110 pts.
Tags:
SQL 2008
SQL Query
SQL Server
SQL Server 2008
SQL 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

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following