473,626 Members | 3,365 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2241
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 "consecutiv e 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*******@gmai l.com> wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.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 "consecutiv e 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
fkOrganizationI D
<<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
3023
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, 14 The relevant part of the script which currently checks for a
1
4459
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 is how to keep track of the session ID across domains. - cookies don't work because not acepted by 40 % of or users and cookies don't work across domains
2
2154
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 information (such as the owner of the "card") in each instance. struct Person; Person Bob; Person Joe;
2
4168
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 (afterupdate event) -> Is there there a smart way of finding out which field has been changed? I don't want to set a procedure on every field on the edit form for keeping track of that, because the forms will be changed from time to time.
3
2902
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 any experience on how to keep track of session value. Any help it's appreciated. Thanks Alan
24
6132
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 the code please.
15
6708
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 that I can calculate weekly and monthly. At this point I have one entry per search phrase with the number of hits the search phrase has gotten, and the last time it was updated. As I start to take the program out of testing and move in more...
10
4952
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 implement the following methods: _ _ init _ _ (self, rank, suit) Creates a card. rank is an integer in range of 1 to 13 (Ace:1, King 13), suit is a character in set {'h','d','c','s'} getRank(self) Returns the rank of the card
8
29153
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 classes: Card.java, Deck.java and DeckTester.java. The specification for each class is given below. Card.Java This is a simple class that represents a playing card. Card has two attributes: • rank which is a String that represents the value...
0
8262
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8196
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8364
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7192
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5571
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4090
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2623
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1507
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.