Unix Technical Forum

Help me to design this table

This is a discussion on Help me to design this table within the Oracle Database forums, part of the Database Server Software category; --> I am developing web site to compare coupons. we will have all information from yahoo, ecoupon.com and couponshopping.com. The ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-25-2008, 07:40 AM
mich dobelman
 
Posts: n/a
Default Help me to design this table

I am developing web site to compare coupons.
we will have all information from yahoo, ecoupon.com and couponshopping.com.
The following tables shows the Denny's coupon avaiable from three sites
from ecoupon.com you have Free Drink, yahoo 2 for 1, and couponshopping 10%
accordingly.

Shop Master Table
| shop_id | ecoupon_id | yahoo_id | couponshopping_id | shop_name |
shop_address
| 1 | ec00001 | yh00001 | cs00001 |
Denny's | 1233 Georgia Ave.

Coupon Master Table
| id | coupon_id | coupon_content |
| 1 | ec00001 | Free Drink |
| 2 | yh00001 | 2 For 1 |
| 3 | cs00001 | 10% OFF |

The problem I am facing now is that what if I add another site handle
coupons say EbayCoupon.com
but uses similar id like ec00001. How can I optimize this table so that the
data won't be duplicated and normalized for the best performance but still
be able to compare the coupons from multiple web sites.

Thanks in advance.

MD


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:59 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com