Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2003
    Location
    Atlanta, GA
    Posts
    92

    Unanswered: Roulette Even/Odd/Red/Black Count problem

    I'm working on a small acces db for tracking Roulette spins, but am having trouble with queries when trying to count only the even, odds, reds, and blacks.

    I have one table called tblnumbers, with autonumber, gamenumber, and number fields.

    Can anyone give me an idea of the query code for something like this?

    Thanks

  2. #2
    Join Date
    Jun 2003
    Location
    Ohio
    Posts
    12,592
    Provided Answers: 1
    Not sure exactly what you want, but:

    SUM([value] Mod 2)

    ...will give you a count of the odd numbers, and so:

    SUM(([value] + 1) Mod 2)

    ...will give you a count of the evens.
    If it's not practically useful, then it's practically useless.

    blindman
    www.chess.com: "sqlblindman"
    www.LobsterShot.blogspot.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •