Posted by Esin Seçil, March 27, 2024, 12:32 p.m.
I did not understand why my solution is incorrect.
Hello,
I submit the answer below for Q100. Can you explain why my query is incorrect?
Best Regards
Esin
Posted by Esin Seçil, March 27, 2024, 12:32 p.m.
Hello,
I submit the answer below for Q100. Can you explain why my query is incorrect?
Best Regards
Esin
Hi Esin,
Thanks for your question. You code is definitely on the right direction, however, because of the structure of the two tables, when you join them together, the cost got inflated, so you will have to compute the cost and revenue separatedly in two steps.
If it is still confusing, try write a query and join the 2 tables advertiser and ad_info, take a look at the results, you will see many duplicate rows of cost.
Hope that makes sense.
-Leon