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

  • SEARCH
  • Home
  • 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 5964341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:24:52+00:00 2026-05-22T19:24:52+00:00

I am trying to develop a bidding system, where an item is listed, and

  • 0

I am trying to develop a bidding system, where an item is listed, and bidders can place a bid, which includes a bid amount and a message. An item may have an arbitrary number of bids on it. Bidders should also be able to see all the bids they have made across different items.

I am unfamiliar with SQL, so am a little unsure how to model this scenario. I was thinking the following:

  • A User table, which stores information about bidders, such as name, ID number, etc.
  • A Bid table, which contains all the bids in the system, which stores the bidder’s user ID, the bid amount, the bid description.
  • A Job table, which contains the User ID of the poster, an item description, and then references to the various bids.

The problem I am seeing is how can I store these references to the Bid table entries in the Job table entries?

Is this the right way to go about approaching this problem? Should I be considering a document-oriented database, such as Mongo, instead?

  • 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-05-22T19:24:53+00:00Added an answer on May 22, 2026 at 7:24 pm

    SQL will work fine like you have it set up… I would do:

    create table usertable (
        userID integer unsigned not null auto_increment primary key,
        userName varchar(64) );
    create table jobtable (
        jobID integer unsigned not null auto_increment primary key,
        jobDesc text,
        posterUserRef integer not null );
    create table bidtable (
        bidID integer unsigned not null auto_increment primary key,
        bidAmount integer,
        bidDesc text,
        bidTime datetime,
        bidderUserRef integer not null references usertable(userID),
        biddingOnJobRef integer not null reference jobtable(jobID) );
    

    Now you can figure out whatever you want with various joins (maximum bid per user, all bids for job, all bids by user, highest bidder for job, etc).

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

Sidebar

Related Questions

I have been trying to develop an app for my ipad which i can
I am trying to develop popup message box which shows warning to user and
I am trying develop a basic referrer system to my Django website, system will
I am trying to develop everything in sharepoint as features so I can easily
I am trying develop an Android app which uses Google maps. So for the
I am trying to develop a friends system, and I need a Many-To-Many relation
I am trying to develop a Qt App using 4.7.3 which involves the writing
I'm trying to develop an app which first checks if the device is connected
HI, I am trying to develop a form which has some user controls ,
Am trying to develop a windows service which listens to a rabbitMQ listener and

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.