Hello @Poel van der, RE (Ron) and welcome to Microsoft Q&A.
Before we get to the examples, I would like to explain the rules about string interpolation.
To indicate only a subsection of text should be evaluated as an expression, and the result rendered into a string, use:
@{my_expression_goes_here}
The @{ marks the start of the expression, and the } marks the end of the expression. Everything outside the {curly braces} is assumed to be text.
If the {curly braces} are excluded, then it is assumed everything is part of the expression.
You can have multiple expressions embedded in your text.
@@ is used to represent a single @ in text, to differentiate from an expression.
In the below, I tested each of my examples, but I did not test your example, as I do not have the appropriate table to test against.
----------
Example 1: in a Lookup using results of a previous activity
select * from @{activity('getother').output.schem}.@{activity('getother').output.tabl}
select 3 * @{activity('getother').output.x} as y, 2 as z;
Your update statement didn't have a close }
----------
Example 2: in a Lookup using pipeline parameters
select * from dbo.emp where FirstName like '@{pipeline().parameters.name}'
select ID from dbo.emp where FirstName like '@{pipeline().parameters.name}' and ID >@{pipeline().parameters.min} and ID < @{pipeline().parameters.max}
select * from DML.dnb_selectie where prd_code =
'@{pipeline().parameters.p_product}' and strt_dt <=
'@{pipeline().parameters.p_start_date}' and end_dt >=
'@{pipeline().parameters.p_end_date}'
----------
Example 3: in a Lookup using pipeline parameters and item of For Each
select @{item()} as [pageNumber] , ID , FirstName from dbo.emp where
ID >= @{mul(pipeline().parameters.pageSize, item())} and
ID < @{mul(pipeline().parameters.pageSize,add(item(),1))}
select year( '@{pipeline().parameters.p_start_date}') as YEAR,
'@{pipeline().parameters.p_start_date}' as PERIOD_START_DATE,
'@{item().SUB_PRD_CODE}' as DNB_SUB_PRD_CODE,
''NL'' as COUNTRY_CODE,
sum('@{item().COLUMN_NAME_NBR}') as VALUE_NBR,
from '@{item().SUB_PRD_CODE}'