Hi Daniel,
That kind of needs are typically solved with sub-queries. The concept is basically "Build a query based on the results of another query". That is
1. Run a query which retrieves a data set
2. Use that data set as an input to filter the results of another query
Focusing on your problem you would need to:
1. Use your existing query (the one with limits on Customer IDs). This query will return a set of names complying with your conditions.
2. Use that set on a second query (similar but independent from the first) to get all the Customer ID's whose names complied the first query.
3. Create another subquery to get the complying address. Add it as another condition to the step 2's query.
This tutorial will guide you on how to use the functionality.
Web Intelligence 4.0: Create a query within a query
An alternative:
If you're using a universe webi will allow you to edit the generated SQL in the Webi's query panel. You can enter there custom SQL which would use a subquery techinique SQL supports. The SQL sentence would look similar to:
SELECT customerID FROM my_table
WHERE name IN (
SELECT name FROM table_with_names WHERE customerID IN ( 100, 200, 300 )
)
AND address IN (
SELECT address FROM table_with_addresses WHERE customerID IN ( 100, 200, 300 )
)
I hope you find any of these alternatives helpful.
Best Regards,
Fernando