473,387 Members | 1,597 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

keep track of Consecutive numbered cards

RR
We have cards that are numbered consecutively. These cards are given out to
different people in different sized batches. One group might get 5, the
next group might get 20.

What is a good way to set up to keep track of which numbered cards are given
out, and to who?

Thanks
Nov 13 '05 #1
3 2218
If you wanted to keep track of them by using tables and relationships,
then maybe use something like this:

Tables:
Groups
ID - autonumber (Primary key)
Name - text

Cards
ID - autonumber (Primary key)
CardNumber - double

Hands
ID - autonumber (Primary key)
fkGroupID - long integer, indexed dups ok (Foreign key)
fkCardID - long integer, indexed dups ok (Foreign key)
fkSessionID - long integer, indexed dups ok (Foreign key)

Sessions
ID - autonumber (Primary key)
Name - text

Enter all the groups, then enter all the cards. To start, create a
session (I guess I could have called this table Games), and then
distribute the cards to the groups using the Hands table. This
structure will allow you to review Session history, add new groups and
cards without affecting the past, and have different size hands for
different groups (one with 5 and the other with 20, eg).

The downside of this structure is that the Hands table is a big many to
many link table between the other tables. This adds complexity. Also,
this structure doesn't by itself provide the "consecutive numbering"
constraint you mention, or any concept of a required number of cards
per session.

HTH,
Johnny

Nov 13 '05 #2
RR
Thanks for the response.
I am may not have explained the "cards" the way i should have.
The "cards" are actually an ID card. An organization will be sent maybe 5
or 20 to had out to members. I then need a way to keep track of which card
numbers go to which clinics.

Everything I've come up with so far is kind of cumbersom for the user. I
cant help but think there is a better method to set this up.
"Johnny Meredith" <jm*******@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
If you wanted to keep track of them by using tables and relationships,
then maybe use something like this:

Tables:
Groups
ID - autonumber (Primary key)
Name - text

Cards
ID - autonumber (Primary key)
CardNumber - double

Hands
ID - autonumber (Primary key)
fkGroupID - long integer, indexed dups ok (Foreign key)
fkCardID - long integer, indexed dups ok (Foreign key)
fkSessionID - long integer, indexed dups ok (Foreign key)

Sessions
ID - autonumber (Primary key)
Name - text

Enter all the groups, then enter all the cards. To start, create a
session (I guess I could have called this table Games), and then
distribute the cards to the groups using the Hands table. This
structure will allow you to review Session history, add new groups and
cards without affecting the past, and have different size hands for
different groups (one with 5 and the other with 20, eg).

The downside of this structure is that the Hands table is a big many to
many link table between the other tables. This adds complexity. Also,
this structure doesn't by itself provide the "consecutive numbering"
constraint you mention, or any concept of a required number of cards
per session.

HTH,
Johnny

Nov 13 '05 #3
Have you tried a simple one-to-many relationship between Organizations
and Cards:

Organizations
ID
<<Other Fields>>

Cards
ID
fkOrganizationID
<<Other Fields>>

If you've tried that, can you more clearly describe the cumbersome
aspect of it and I'll try to help you resolve this.

If you reissue cards (the organizations give the card back after a
time, and you reuse them), then a many-to-many linking table between
the two may be in order.

Johnny

Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Adam | last post by:
Hi, I am trying to mark consective numbers in a data set and get a count as to how many consecutive numbers exist in the a given line of data. Here is an example line: 3, 5, 7, 9, 10, 13,...
1
by: d.schulz81 | last post by:
Hi all, We have about 10 different domains that are linked very closely and we want to identify and keep track of every single user that surfs our websites by the use of sessions. The problem...
2
by: kelvSYC | last post by:
I'm trying to program something along the lines of a "trading card" idea: I have a single copy of the "card" in the program, yet there may be multiple "instances" of the "card", with differing...
2
by: Uwe Range | last post by:
Hi to all, I am developing a database where, with time, it proved to be necessary to keep track of the changes to the data. It is fairly easy to keep track of the time when a record was changed...
3
by: Alan Wang | last post by:
Hi there, Once my application gets complicated and complicated. I found it's really hard to keep track of Session value I am using in my asp.net application. I am just wondering if anyone have...
24
by: rudranee | last post by:
hi there, can anyone tell me how to lines from a file which are odd numbered i.e. 1st,3rd,5th...lines. i tried incrementing file pointer by 2 (fp=fp+2) but it does'nt work Can someone give me...
15
by: l3vi | last post by:
I have a new system Im building that stores entries of what people are searching for on my sites. I want to be able to keep records of how many times a keyword was searched for daily, and from...
10
by: Arun Nair | last post by:
Can any one help me with this im not getting it even after reading books because there is not much of discussion anywhere a> Implement a calss that represents a playing card. The class should...
8
by: garyrowell | last post by:
I have been at this programme for hours trying to work out what is wrong. Any help would be very much appricated. Here is the breif I received. The program This week you are going to write three...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.