Database view question when using multiple task tables

David167
Tera Contributor

I'm trying to create a view where I can see tasks for demand and tasks for the project table. I works fine when using on only a joint view between the demand task , demand and project table. But, when I try adding the project task table to the equation, the reports shows empty. Not sure if it's the order, or the where clauses, I've tried multiple combinations and it continues to show up empty. The last attempt was using an or operator || , but doesn't seem to like it either.

Any suggestion would be greatly appreaciated.

Thank you.

5 REPLIES 5

-O-
Kilo Patron
Kilo Patron

One thing that you could do is to start with task, filter it to demands and projects then left join demands' tasks to task and left join projects' tasks to task. However that would give you only task fields for demand and project. You could also left join demand and project to the base task. It should work. Something like:

find_real_file.png

The only problem is that you will be getting each demand and project as many time as they have child tasks. So if a demand has 5 demand tasks, you will get that demand 5 times. But that is valid for any such select, it's a logic problem, not a SN/DB View problem.

David167
Tera Contributor

This is excellent, thank you Janos. Regarding the results, that's fine, because I'll be filtering by just 1 specific task , tied to 1 keyword.

You're welcome! 🙂

David167
Tera Contributor

Apologies for the late response Janos, fell off my radar, appreciate the quick response and detail. I proceeded to create the following data base view:

 

find_real_file.png

Now, the problem that I'm having is that I lost the demand task short description, or at least it shows up empty , for this new scenario where I'm introducing demand and projects tasks. I'm only looking for the first task that contains "gateway" within the short description. I will also want the project task short description that matches "kick off", which also shows up empty.

find_real_file.png

When I do this same exercise only for demand and task (this data base view does not include project tasks), it works:

find_real_file.png

I do get the output:

 

find_real_file.png