Zaman31502. You asked a similar question a few days ago, and we asked for more details, but you did not provide any.
We have no way to know how you can link those two tables without knowing the structure of those tables.
If those tables are really unrelated as you said in your previous question, then maybe you don’t have to get the information from both in one query, but execute one query for each table, and make the calculations in your program or in a stored procedure.
We could give you some suggestions, but everything would be based on assumptions, because we do not have any details.
Please provide more details, and I’m sure you will get the answer you are expecting.