Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Lottery Results

Status
Not open for further replies.

johnrg1

Programmer
Jan 24, 2003
38
GB
Hi Guys,

Some advice please,

What do you think is the best way to find winners from a database? Jackpot is easy, but matching 3, 4, 5 and 5 + Bonus Ball had got me stumped.

Its out of 49 balls.

Is there an easy way to do it, or is it just gonna be a very long select statement?

John.
 
Label me intrigued ....
How exactly (how easily?) are you getting the jackpot 6 numbers ?
 
StevenK,

The numbers are sorted into numerical order, so simply put, if ball1 = @ball1 AND ball2 = @Ball2 .....

Then there is a jackpot winner.

I have thoughtabout getting the other results, and feel thsat just counting the number of balls matched would work, but how would i do that....

if out of the 6 balls, 3 matched then the count would be three, but how would I obtain the count?

Cheers for any help

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top