this is for table1 i,e t1
P1 nvarchar(255) Checked
S1 nvarchar(255) Checked
B1 nvarchar(255) Checked
H1 -b1 int Checked
H1 -s1 int Checked
S2 -b1 int Checked
S2 -s1 int Checked
J1 -b1 int Checked
J1 -s1 int Checked
and this is for table 2 i,e t2
P1 nvarchar(50) Checked
S1 nvarchar(50) Checked
B1 nvarchar(50) Checked
Fun nvarchar(50) Checked
Val int Checked
Loc nvarchar(50) Checked
and i have mentioned values and desired output in my previous file... plz check the txt document which is attached u willl get brief idea about it
I cannot run anything from what you have posted.
DDL should look like that:
CREATE TABLE MyTable
Test data should be like that:
INSERT MyTable SELECT 1, 'a',...
INSERT MyTable SELECT 2, 'b',...
And the code you post should be runnable.
Then, I can execute it in my SSMS and provide you with solution for your query.
The amount of time you have spend on posting incomplete information is already few times more than if you would read the article and provide details as suggested above.
There is another way to have your answer. Wait for someone who will be happy to work from information you have posted. I'm sure it will get answered eventually. However, it may take much much longer time...
"The only true wisdom is in knowing you know nothing"
"O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
(So many miracle inventions provided by MS to us...)How to post your question to get the best and quick help