Hi @Axell ,
Thank you for posting query in Microsoft Q&A Platform.
Lookup activity will help you to execute query in SQL.
You should consider selecting query option inside Lookup activity. When you selected Query option, table selected inside dataset will not play any role. Query will directly execute on your DB(database which is selected inside linked service of your dataset).
Please note, if your actually query not returns anything back. Then try to add select '1'
as last statement below your query.
Hope this will help. Please let us know if any further queries.
-------------------
Please consider hitting Accept Answer
button. Accepted answers helps community as well.