Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Creating a sweepstake type db

Featured Replies

Hi,

I was just wondering if someone could please point me in the right direction of how to design a database I need.

We have this thing in Australia called the Melbourne cup and work sweepstakes are very big on this day.

The key points to the database would be

1. horse names

2. staff names

3. share values

Each person can have as many shares as they like. The types of shares will be $1, $2, and $5.

So for example if there are 15 horses running, and there are 3x$1, 2x$2 and 1x$5 there are effectively

45 x $1 records

30 x $2 records

15 x $5 records

Lets say someone purchase 3x$1, 1x$2 and 1x$5 being a $10 payment.

I would then need to run a script to randomise it and select 5 of the horses names, remove them from the pool.

I'm just having trouble understanding if a) this is possible and : how I would go about such a thing.

I attach an excel list to show as an example of what is the end product from last year (this was produced manually).

I've worked out my basic tables but the rest :

Melbourne_Cup_Sweeps.zip

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.