473,387 Members | 1,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Setting up tables for complex relative values

I am mining an auction website for values.

Items are put up for trade. Sometimes items are auctioned with other items simultaneously, such as:

Item A, Item B and Item C.

Sometimes items also have credits listed with them, such as:

Item A and 50 credits.

Other members then bid on those trades with bids that follow a similar form, such as:

Item D and 2000 credits.

So, a given trade could look like:

Up for trade: Item A ... Winning bid: Item C, Item C, Item D and 250 credits.

...or...

Up for trade: 2 of Item B ... Winning bid: Item A, 3 of Item C, Item D and 150 credits.

What would be the best way to go about recording these completed trades?

The object of this recording is to approximate a relative value (in credits) for each item.

I've been thinking about how to go about this for several days now, and I haven't had much success.

Could someone point me to some helpful literature, or perhaps take a stab at it?

I would appreciate any and all help!
Jan 14 '07 #1
4 1482
bartonc
6,596 Expert 4TB
DB Design 3rd Edition looks very promising.
Jan 14 '07 #2
MMcCarthy
14,534 Expert Mod 8TB
You will need to start off with an Item Table, a Lot Table and an Items per Lot table.

Item Table (tblItems)
ItemID (Primary Key, AutoNumber)
ItemName
ItemDescription

Lot Table (tblLots)
LotID (Primary Key, AutoNumber)
LotNum (Num from the website)
LotDescription
Credits (defaults to 0)

Items per Lot Table (tblItemsPerLot)
LotID (Composite Primary Key, Foreign Key to PK of tblLots)
ItemID (Composite Primary Key, Foreign Key to PK of tblItems)

For reference check out this tutorial in the Access forum.

Mary
Jan 15 '07 #3
Excellent!

Thanks to everyone for their help.

On the other hand, does anyone know about an algorithm that would evaluate the relative values for each item that was traded?
Jan 23 '07 #4
MMcCarthy
14,534 Expert Mod 8TB
Excellent!

Thanks to everyone for their help.

On the other hand, does anyone know about an algorithm that would evaluate the relative values for each item that was traded?
Does each item have a credit value that could be set in the Items table?
Jan 23 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Andreas Lauffer | last post by:
I changed from Access97 to AccessXP and I have immense performance problems. Details: - Access XP MDB with Jet 4.0 ( no ADP-Project ) - Linked Tables to SQL-Server 2000 over ODBC I used...
2
by: Tim Pollard | last post by:
Hi I'm hoping someone can help me with an access problem I just can't get my head around. I normally use access as a back end for asp pages, just to hold data in tables, so queries within access...
11
by: Zlatko Matić | last post by:
Hello. I have a MS Access front-end working with PostgreSQL database. I have successfully created saved File DSN. My paa-through queries are referring to that file as well as linked tables. But I...
10
by: MLH | last post by:
I have an A97 table with a Yes/No field named TowJob and a form bound to that table. The TowJob control on the form is bound to the same field. It is an option group with Yes and No bttns valued...
4
by: John Ortt | last post by:
Hi Everyone, Just wonderring if it is possible to link tables in access using 'relative' terminology rather than 'absolute' ? For example the path would become '\Sourcefile\MyPets.mdb' rather...
4
by: michael sorens | last post by:
I have successfully bound an XmlDocument to a DataGridView but all fields seem to be strings. I want to retrofit appropriate datatypes on some of the fields. Let me take this in 2 parts. Part...
5
by: aljamala | last post by:
Hi, I have a group of 5 tables laid out of the web page. 2 go on the left side and 3 on the right. These tables retrieve data from the database so the number of records (rows) returned varies....
12
by: Doug | last post by:
Hi, I learned a little about the model view presenter pattern at a conference this last week and am experimenting with it. It's working pretty well but I have a question. I am trying to use...
3
by: Rangy | last post by:
Hi, I've decided to take the plunge and move from tables to a pure css layout. I still "think" in tables when I do my layouts and I was wondering the following: I have a simple, standard two...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.