Results 1 to 3 of 3
  1. #1
    theresa's Avatar
    theresa is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Feb 2014
    Location
    Ireland
    Posts
    20

    Help creating a functional relational Database, Can't figure out relationship problem

    I have created a number of tables but have been unable to get the relationship right. It's a database for a voluntary counseling service. The main tables are Counsellors, Clients, Counselling and Appointment. I made the Counselling table to enable some normalisation and hoped to connect the Appointments table to it as a child. The counselling table is to be used to hold specific data to be used in stats later such as number of no shows, number of counselling hours in period by counsellor, Clients finished counselling in period etc.. I'm wondering if I should create an unique primary key for the counselling table as it may be the duel Primary key that's not allowing me to connect it to the appointments table. It's my first database and I get that this is the most important stage to get it right but I've got lost somewhere. It's probably something simple but I just can't see it at the minute. Any help would be appreciated.



    Click image for larger version. 

Name:	relationship.jpg 
Views:	20 
Size:	81.6 KB 
ID:	15942 Click image for larger version. 

Name:	tables.jpg 
Views:	20 
Size:	129.7 KB 
ID:	15941 or Click image for larger version. 

Name:	relationship2.jpg 
Views:	20 
Size:	100.1 KB 
ID:	15944

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,725
    theresa,

    Here is a tutorial that will help you understand tables and relationships. You'll have to work through it, and there is a solution included. It all starts with a clear and concise description of the business that your database is intended to support.

    Good luck.

  3. #3
    theresa's Avatar
    theresa is offline Novice
    Windows 8 Access 2007
    Join Date
    Feb 2014
    Location
    Ireland
    Posts
    20
    Thanks for your reply, I have looked at that before but I'm still confused as to how best to connect the relationships in order to get the required information out of the database. I've been at this so long and tried many different ways that I've confused myself. Here's the brief that I've been given by the Counsellor to help her:

    When a Client first contacts the service, information is collect from the client such as Name, Address, Phone, DOB, Date of Referral, Presenting Issues, Referral Source and Times/Days available. They are placed on a waiting List until a Counsellor is available.
    An Active Counsellor has 4 or 5 Clients at any given time and does not receive a new client until one of their current Clients has finished their Counselling. The Counsellor collects records of their Appointments such as Date, Time, Length of session and if the Client shows up for their Counselling Appointment.
    When a Counsellor becomes available, a Client is then selected from the waiting list and given their first Appointment. The Client is seen by the Counsellor through Appointments until the Client is Finished and/or referred elsewhere, which is noted by the Counsellor. When the Client is Finished, they are no longer an active Client for that Counsellor and a new Client is selected from the waiting list.
    The Management require the following information both quarterly and annually:

    • List of New Clients referred within the Period
    • Current Waiting List within the Period
    • Current Waiting List based on Category and Age within the Period
    • Length of time on Waiting List
    • New Counselling Clients within the Period (Current Clients)
    • Counselling hours provided within the Period grouped by Counsellor
    • Number of Clients finished within the Period
    • Number of Client 'No Shows' within the Period grouped by Counsellor

    The Management would also like the database to warn if a Client has 3 previous consecutive 'No Shows'.

    The closest ERD I can see to fit is

    Click image for larger version. 

Name:	doctors_practice_model.gif 
Views:	17 
Size:	28.3 KB 
ID:	15984

    I think I have it with this

    Click image for larger version. 

Name:	Counsellingrelationship.jpg 
Views:	16 
Size:	104.9 KB 
ID:	15987

    I just want to be sure before moving on and hoped that someone could look at it to check That I'm on the right track or point out any flaws I've overlooked as it needs to be able to fulfill all of the above criteria
    Last edited by theresa; 03-29-2014 at 05:45 PM.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 03-17-2014, 10:51 AM
  2. Problem linking two tables(relational)
    By Hairy in forum Access
    Replies: 14
    Last Post: 09-22-2012, 06:28 PM
  3. Creating relational links between tables
    By NancyLoc in forum Import/Export Data
    Replies: 2
    Last Post: 04-10-2012, 01:38 AM
  4. Replies: 7
    Last Post: 10-03-2011, 02:46 PM
  5. Relating 2 Tables - Relational Problem
    By jeng in forum Database Design
    Replies: 5
    Last Post: 04-01-2010, 09:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums