•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Database Design section within the Web Development category of DaniWeb, a massive community of 425,938 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,625 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Database Design advertiser: Programming Forums
Views: 692 | Replies: 0
![]() |
| |
•
•
Join Date: Oct 2006
Posts: 58
Reputation:
Rep Power: 3
Solved Threads: 0
Hi!
I'm strugling with this task for my wife's business. They produce a local weekly ad paper and they want a db to mange their business. I'm having trouble with designing the "Product" table properly. This is how their pricing works:
[Ad size] --------[1 week]--------[4 weeks]--------[8 weeks]
--1/2---------------$10 -------------- $9---------------$8
--1/4--------------- $5---------------- $4--------------$3
.
.
.
And so on.
The "1 week" filed is for your ad going in one week. If you commit to 4 weeks or 8 weeks they give you a discount and you pay less PER ad. If this is all I was working with it would be fairly easy to make a product table.
I would make a table for each of the datas: Size, Duration and type (classified or ad) since they can always add or remove these in the future. And then in my "product" table have a combo box that is based on a query of the above tables. This qury will have the "dataName" of each of the above tables. So when clicking on the drop down arrow I would get a long list of all the possible combinations: "Type, Size, Duration".
The problems start here:
They have a size called "Full Page" which can only be comitted to one week so there's no 4 or 8 week option there.
They have Classifieds which have the 4 and 8 week option but they are all a fixed size.
Any ideas?
Also, if you think my design is totally off I would appreciate input.
Thanks
Ami
I'm strugling with this task for my wife's business. They produce a local weekly ad paper and they want a db to mange their business. I'm having trouble with designing the "Product" table properly. This is how their pricing works:
[Ad size] --------[1 week]--------[4 weeks]--------[8 weeks]
--1/2---------------$10 -------------- $9---------------$8
--1/4--------------- $5---------------- $4--------------$3
.
.
.
And so on.
The "1 week" filed is for your ad going in one week. If you commit to 4 weeks or 8 weeks they give you a discount and you pay less PER ad. If this is all I was working with it would be fairly easy to make a product table.
I would make a table for each of the datas: Size, Duration and type (classified or ad) since they can always add or remove these in the future. And then in my "product" table have a combo box that is based on a query of the above tables. This qury will have the "dataName" of each of the above tables. So when clicking on the drop down arrow I would get a long list of all the possible combinations: "Type, Size, Duration".
The problems start here:
They have a size called "Full Page" which can only be comitted to one week so there's no 4 or 8 week option there.
They have Classifieds which have the 4 and 8 week option but they are all a fixed size.
Any ideas?
Also, if you think my design is totally off I would appreciate input.
Thanks
Ami
![]() |
•
•
•
•
•
•
•
•
DaniWeb Database Design Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
activation adsense advertising backup blogging book bt business business software code connectivity copyright creative daniweb database design development erp systems google hacker howto illustrator india internet isp key marketing microsoft news normalization product publishing research revenue search security serial server software software selection sql survey technology evaluation toread tutorials typo-squatting video vista web youtube
- Design, SEO, Hosting, Business related link exchange. Add your site (Relevant Link Exchanges)
- ASP.NET Web/ Applications Developer - Macclesfield (Software Development Job Offers)
- trial version need product key??? (Windows NT / 2000 / XP / 2003)
- Software Developer (Software Development Job Offers)
- need advice on nested loops. (PHP)
- Business Partners & Franchise Required!!! (Web Development Job Offers)
- Product List and Order Form Submit (JavaScript / DHTML / AJAX)
Other Threads in the Database Design Forum
- Previous Thread: Complex Database Searching...........
- Next Thread: Help with database design


Hybrid Mode