Hello Aravind In Azure Data Factory, the Filter activity in a pipeline is used to apply a filter expression to an input array. However, it does not directly support SQL-like subqueries. Instead, you can use a combination of Lookup, Filter, and ForEach activities to achieve similar functionality. Here’s a high-level approach: Lookup Activity: Use a Lookup activity to execute your subquery and retrieve the data. This will give you an array of results that you can use in the next steps.
- Filter Activity: Use a Filter activity to filter the data based on your condition. The Filter activity in Azure Data Factory allows row filtering based upon a condition. The output stream includes all rows that match the filtering condition. The filter transformation is similar to a WHERE clause in SQL.
- ForEach Activity: If you need to perform operations on each of the filtered results, you can use a ForEach activity. You can use the output from the Filter activity as an input to the ForEach activity.
Remember, the Filter activity in Azure Data Factory works with arrays, so you’ll need to structure your data accordingly. Also, the condition in the Filter activity must be an expression that returns a boolean value. Please note that this is a high-level approach, and you might need to adjust it based on your specific use case and data structure. It’s also a good idea to refer to the official Azure Data Factory documentation for more detailed information and examples. Does this answer your question?