Thanks for the answer. That is what I was afraid of....
I am familiar with db relationship concepts but do not have a huge db background. If i understand correctly, you are proposing a change to something of the sort.
Table 1
Queue (primary id, autoincrement) Requesting ID Receiving ID NumberRequests RequestID AnswerID
Request Table
RequestID (primary, autoincrement) TimeStamp
Answer Table
AnswerID (primary, autoincrement) Response (0,1) TimeStamp
Then, when doing queries,
search table 1 for desired requesting & receiving id
use join on answerid to see if response is 1
if so, exit, else
check numberRequests < 3
if so, allow another request - insert into requesttable &
insert request id into table 1
Is that the general idea? I see how that is much less confusing. Can this be improved even more than my understanding? I appreciate all the assistance.
Oh, one thing I did not solve....how would I best keep each request / answer for historical records, in case ever needed. That is, how can I confirm Employee A made request 1 on June 3rd, request 2 on July 5, and request 3 on August 30th? Seems I missed that piece.
Again, thanks a ton. I'm learning quickly but have a ton to go.