Complex SQL design, help/advice needed

Posted by eugeneK on Stack Overflow See other posts from Stack Overflow or by eugeneK
Published on 2010-06-02T14:05:24Z Indexed on 2010/06/02 14:14 UTC
Read the original article Hit count: 249

Filed under:
|

Hi, i have few questions for SQL gurus in here ... Briefly this is ads management system where user can define campaigns for different countries, categories, languages. I have few questions in mind so help me with what you can.

Generally i'm using ASP.NET and i want to cache all result set of certain user once he asks for statistics for the first time, this way i will avoid large round-trips to server.

any help is welcomed

Click here for diagram with all details you need for my questions

1.Main issue of this application is to show to the user how many clicks/impressions were and how much money he spent on campaign. What is the easiest way to get this information for him? I will also include filtering by date, date ranges and few other params in this statistics table.

2.Other issue is what happens when user will try to edit campaign. Old campaign will die this means if user set 0.01$ as campaignPPU (pay-per-unit) and next day updates it to 0.05$ all will be reset to 0.05$.

3.If you could re-design some parts of table design so it would be more flexible and easier to modify, how would you do it?

Thanks... sorry for so large job but it may interest some SQL guys in here

© Stack Overflow or respective owner

Related posts about sql

Related posts about sql-server