Ask a Question related to ASP Database, Design and Development.
-
Dragonhunter #1
finding pairs of people in a database for trading?
Hello,
I have a database structured like this:
user
item ID
have this many items
want this many items
for example:
bob 23 1 2
joe 14 0 1
bob has 1 of item 23 and wants 2 more
Joe has 0 of item 14 and wants 1 of it
Now what I'd like to do is figure out which pair of people should trade
(they can have more than 1 item in the database). i.e., person A has
most of the items on person B's wants list, while person B has most of
the items on person A's wants list.
I'm thinking of finding the difference between person A's haves and
person B's wants, then saving that as a 'score', and repeating this
process for all the other people's wants compared to person A's haves
(and keeping a variable that remembers the highest score).
Is there a better way? Like through SQL?
thanks,
dragonhunter
Dragonhunter Guest
-
Interested in trading ?
Hi group I have one ebook for (ebook)-70-315 MCSD MCAD -- Develop & Implement Web Apps with C#.pdf (www.correctexams.com) And ebook for -
Trading senerio
I am trying to create an interface that will allow two users do do a trade of items live on the web. What I want to happen, and I have seen it done... -
Secure Login Database from people guessing filename.
Hello. I have create a access DB for my login security. However, if someone guesses the path to my database, they can download it and open it...



Reply With Quote

