Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8975219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:49:23+00:00 2026-06-15T18:49:23+00:00

I am creating an affiliate tracking system and am looking for the best database

  • 0

I am creating an affiliate tracking system and am looking for the best database structure to use on mySQL for low load on the server.

There will be 1000 affiliates. Each affiliate will have stats per day.

I am thinking of this scenario. One main table for the affiliates:

Affiliates

id    affiliate_id    username    password    and so on (other affiliates details)
1     0000001         johndeer    password   

… and creating a new table for each affiliate which will have store his statistics like this:

Table name : affiliate-userid

Date        Clicks    sales    sale_price    total_earned    bonus
12/12/12    45        2        20            40              0
12/13/12    12        3        20            60              0  

So in this case each affiliate will have his own statistics table.

Is this correct or do I need to do something else?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T18:49:24+00:00Added an answer on June 15, 2026 at 6:49 pm

    Create two table

    • Affiliates(af_id(pk),*) and

    • Stats(stat_id(pk),af_id(fk),*)

    Then, Refer Affiliates table in stats table. you can add any number of stats for any number of affiliates. No need to go for a table for each affiliate. It’s a bad Idea.I think you understood.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Creating a server-side socket will fail if I'm trying to use the same port
Creating column at runtime, with DataTemplateSelector. Have exception at XamlReader.Load: System.Windows.StaticResourceExtension. How can i
Creating a browser based single-page browser based RIA. Would like to make use of
Creating a rating system and the info is not being transmitted through my $_GET
Creating Facebook event for specific page with FB Graph API There is a thread
Creating simple php login scripts is easy, with simple one table mysql integration. I
Creating a login system for something and am getting: Warning: mysql_result(): supplied argument is
Creating a mini-database with access, i came across this problem: For the background, i
Creating an index MySQL After I have added the FULLTEXT index, how do I
Creating a simple TCP server based on examples but still do not get how

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.