Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions


WDVL Newsletter

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us















Developer Channel
FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


The Auction Database - Page 3

September 11, 2000

Based on the information in the previous section, we have a good understanding of what our database schema should look like. The following tables list our database structure:

tblAuctions    tblAuctionItems
AID Unique ID to keep track of records Autonumber   IID Unique ID to keep track of records Autonumber
StartDate Date the auction started Date/Time   AID Which auction does this item belong to? (Foreign key to Auctions table) Integer
EndDate Date the auction is to end Date/Time   Name Name of the item being sold Text
SellerID The ID of the seller. (Foreign key to user table) Integer   Description Description of the item being sold Text
    MinPrice Minimum price to sell (specified by the seller) Money
tblAuctionBids   Increment Value to increment proxy bids by (specified by the seller) Money
BID Unique ID to keep track of records Autonumber   Available Number of items available to sell Integer
IID Unique ID to keep track of items (foreign key to AuctionItem table) Integer    
UID Unique ID to keep track of bidders (foreign key to AuctionUsers table) Integer   tblAuctionUsers
WinPrice Current price for a user (calculated by application) Money   UID Unique ID to keep track of records Autonumber
MaxBid Maximum price for a user Money   Name Name of user Text
BidItems The number of items this user bid for Integer    
WinItems The number of items this user would win if the auction ended immediately Integer    
Time The last time this bid was updated Date/Time    

Note that the above tables are simply used for example. You may decide to store more information for your purposes (i.e., you may store more than just a name in the user table). Already, however, the schema is getting kind of complex - each table has foreign keys to one or more other tables.

NOTE: You can use a pre-existing user table if you wish. We simply provide the tblAuctionUsers table definition for completeness sake.

How do I start? - Page 2
How to Make Your Own Ebay
The Logic - Page 4


Up to => Home / Authoring / ASP / Ebay




Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers