Table 1
ID Information
1 This is Key
2 This is Ball
3 This is Bike
4 This is Pen
5 This is Car
Table 2
ID Member
1 Chandra
2 Prasad
3 Rajesh
Table 3
ID Id.Member Id.Infromation
1 1 5
2 1 1
3 2 2
4 3 1
5 1 3
6 3 4
7 2 3
ID : Primary Key
Send the MemberID for Eg: IDà1 Depending on the ID Value Result Like This.
InformationId Information IsSelected
1 This is key True
2 This is Ball False
3 This is Bike True
4 This is pen False
5 This is Car True
So I need all the information of table1 and the related selected items from table 3 while sending the memberId.
Using SQLSERVER 2008 Need SQL Query for getting this table
ID Information
1 This is Key
2 This is Ball
3 This is Bike
4 This is Pen
5 This is Car
Table 2
ID Member
1 Chandra
2 Prasad
3 Rajesh
Table 3
ID Id.Member Id.Infromation
1 1 5
2 1 1
3 2 2
4 3 1
5 1 3
6 3 4
7 2 3
ID : Primary Key
Send the MemberID for Eg: IDà1 Depending on the ID Value Result Like This.
InformationId Information IsSelected
1 This is key True
2 This is Ball False
3 This is Bike True
4 This is pen False
5 This is Car True
So I need all the information of table1 and the related selected items from table 3 while sending the memberId.
Using SQLSERVER 2008 Need SQL Query for getting this table
Comment