Hello, forum. I'm missing some query knowledge right now.
I have two tables like this:
tbProjects: ProjectID*, ProjectName
tbActivities: ActivityID*, ActivityName, Unit, UnitPrice, ProjectID (fk)
Now, let's say I have 4 projects, from 1 to 4, and each project has some ActivityNames that repeat, but change their UnitPrice. And this is what I need to analyze.
In a query, I know how to display all of the ActivityNames from Project 4, keeping them in the right order. But how do I display another two columns, where I can compare the matching ActivityNames from Project 1 and Project 3, BUT having the ActivityNames from Project 4 intact, no more, no less, all of them and in the right order? I don't really want to display ActivityNames from Project 1 and 3 if they do not match with the list provided by Project 4.
Does this make sense?
Thank you all in advance.
I have two tables like this:
tbProjects: ProjectID*, ProjectName
tbActivities: ActivityID*, ActivityName, Unit, UnitPrice, ProjectID (fk)
Now, let's say I have 4 projects, from 1 to 4, and each project has some ActivityNames that repeat, but change their UnitPrice. And this is what I need to analyze.
In a query, I know how to display all of the ActivityNames from Project 4, keeping them in the right order. But how do I display another two columns, where I can compare the matching ActivityNames from Project 1 and Project 3, BUT having the ActivityNames from Project 4 intact, no more, no less, all of them and in the right order? I don't really want to display ActivityNames from Project 1 and 3 if they do not match with the list provided by Project 4.
Does this make sense?
Thank you all in advance.