ice78991
Programmer
- Nov 20, 2006
- 216
I am trying to work out a query which satisfies the following demand. I have tried various solutions with joins,temporary tables etc but none are working. Here's the problem:
The site has a forum. There are 2 tables. A Member table and a Posts Table.
The Member table contains member information.
The Posts table contains the member posts with a MemberID foreign key. These posts can be activa or inactive and there is a column to signify this.There is one row for each post.
What I want to do is generate a list of members along with the number of active or inactive posts they have made.
The ultimate result for me would be to return a table that contains a row for each member with activeposts and inactiveposts fields appended. Is this possible and if so what is the best apporach.
The site has a forum. There are 2 tables. A Member table and a Posts Table.
The Member table contains member information.
The Posts table contains the member posts with a MemberID foreign key. These posts can be activa or inactive and there is a column to signify this.There is one row for each post.
What I want to do is generate a list of members along with the number of active or inactive posts they have made.
The ultimate result for me would be to return a table that contains a row for each member with activeposts and inactiveposts fields appended. Is this possible and if so what is the best apporach.