Hello,
Question 1:
i am using an OleDbConnection to receive data from an Access DB.
I get all the news written with this command:
"SELECT * FROM news" and i fill them with OleDbDataAdapter into a dataset.
But there is another table called newscom, which is standing for the comments written for a news.
I get all the comments written for one news using this command:
SELECT * FROM newscom WHERE id LIKE 'newsid'
And now i want the number of comments written for one news to be a column in my news table fetched with the OleDbDataAdapter. (Combining the first query with the second one)
Question 2:
The second question is very similar to the first one.
This time i have the author from a news, and i want to get all informations stored in the user db for this author.
The command to get the userrow with the information in it is:
SELECT * FROM user WHERE id LIKE 'authorid'
Now i want to combine the news query and the user query.
Again I want the UserRow to be a column (as an object or sth like that) in my news table fetched with the OleDbDataAdapter.
Any suggestions?
Best regards,
roflkind
how to do this?