Question

I got a request to create a cascading parameter for Projects in a dataset like this:

Project     Manager
    A          Person 1
    A          Person 2
    B          Person 1

etc...

When the user chooses a particular manager, this works fine, but the user can also choose all the managers, in which case there would be multiples of the same Project in the parameter drop down list...

I'm very new to SQL, so any help would be much appreciated!

Was it helpful?

Solution

I think you're looking for a group by project or select distinct for the second query.

select project from ... where manager_id in (1,2) group by project
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top