Hi Rose Mary Job ,
Thankyou for using Microsoft Q&A platform and thanks for posting your question here.
As per my understanding, you are trying to make the expression in ADF dynamic so that same pipeline can take care of dealing with multiple tables. Please let me know if that is not the case.
Kindly use the valid expression, instead of @{pipeline,parameters().emp_id}
, use @{pipeline().parameters.emp_id}
Additionally , the expression should be a valid sql query as the dataset must be pointing to the sql database . In the query, you have mentioned the expression in json format, kindly use only the sql query inside the json to run in the database ,
For more details , kindly check the below documentation:
Expressions and functions in Azure Data Factory and Azure Synapse Analytics
Hope it helps. Kindly accept the answer by clicking on Accept answer
button. Thankyou.