I have a piece of SQL Script and after every piece I have identifier for new columns (orders) after that I can use this identifier to work with another parts (where orders.maxdate2=1) What is the best practice make this identifier in SQL Component?

I have a piece of SQL Script and after every piece I have identifier for new columns (orders)

after that I can use this identifier to work with another parts (where orders.maxdate2=1)

What is the best practice make this identifier in SQL Component in Transformation job?

Hi there @dmytriy.zhelznyak​ and thanks for your patience.

If you're still looking for an answer to this, the WHERE clause could be implemented as a Filter. This documentation here might help you further. Let us know if that helps at all.

Many thanks,

Claire