azhar2006
May 17 2012, 02:31 PM
Hi All
How to set up tables to the following
Group of Colleges
The Examination Halls
I want to work for this book halls / hours / days / week
All alone on the College
College of Veterinary Medicine, for example where the halls / 1/2/3/4/5/6 / Hall 1 reserved from 9 am on Sunday for the day 08/10/2012
theDBguy
May 17 2012, 02:41 PM
Hi,
Not sure if this will cover all your requirements, but it could be a start:
tblColleges
CollegeID, PK
CollegeName
etc...
tblCollegeHalls
CollegeHallID, PK
CollegeID, FK
HallName
etc...
tblHallReservations
ReservationID, PK
CollegeHallID, FK
StartDate
EndDate
etc...
Just my 2 cents...
GroverParkGeorge
May 17 2012, 02:42 PM
You need a table of colleges. Make sure you include the CollegeID as the Primary Key.
You also need a table of ExaminationHalls. Again, make sure you include the ExaminationHallID as the Primary Key.
You may also need a table of Examinations. Again,make sure you include the ExaminationID as the Primary Key.
Then you'll need a junction table that relates the colleges, examinations, and ExaminationHalls. Include the date and time fields for each scheduled exam.
That ought to be enough to start.
azhar2006
May 17 2012, 02:47 PM
Hi
theDBguy
And how my son relations
Hi
GroverParkGeorge
End not only reservation but exams those halls
theDBguy
May 17 2012, 02:49 PM
QUOTE (azhar2006 @ May 17 2012, 12:47 PM)

Hi
theDBguy
And how my son relations
I'm afraid I don't understand your question.

The relationships are indicated by the tags "PK" (primary key) and "FK" (foreign key).
Just my 2 cents...
azhar2006
May 17 2012, 02:58 PM
An example of one college only
I want to put the information in the field of the hall
For example, took advantage of the Hall by Dr. Miller
azhar2006
May 17 2012, 03:22 PM
theDBguy
Yesterday, a witness Shirk film I came to my mind
theDBguy
May 17 2012, 03:27 PM
QUOTE (azhar2006 @ May 17 2012, 01:22 PM)

theDBguy
Yesterday, a witness Shirk film I came to my mind
Thanks!
GroverParkGeorge
May 17 2012, 03:29 PM
I'll leave you in the capable hands of the DB Guy.
azhar2006
May 17 2012, 03:36 PM
GroverParkGeorge
I think that
Painting a beautiful GroverPark and dangerous
Greetings to you
theDBguy
May 17 2012, 03:37 PM
Hi,
QUOTE (azhar2006 @ May 17 2012, 12:58 PM)

An example of one college only
I want to put the information in the field of the hall
For example, took advantage of the Hall by Dr. Miller
You shouldn't worry about how to display the information yet. The first thing to do is get the table structures correct before worrying about how users will use the database.
If you're not familiar with relational database designs, take a look at this Wiki article on
Normalization and Crystal's
Access Basics tutorials.
Just my 2 cents...
azhar2006
May 18 2012, 05:11 AM
Hi Shirk
DBguy
I could not set up tables
I read the topic did not understand something
azhar2006
May 18 2012, 07:46 AM
Hi DBguy
Can I do to impose referential integrity
With respect to the three tables above.
theDBguy
May 18 2012, 08:41 AM
QUOTE (azhar2006 @ May 18 2012, 05:46 AM)

Hi DBguy
Can I do to impose referential integrity
With respect to the three tables above.
Yes, you can, and it's actually highly recommended.
Have you read Crystal's tutorials above?
azhar2006
May 18 2012, 10:36 AM
Hi DBguy
I have read the lessons
I understand the little ones
theDBguy
May 18 2012, 10:46 AM
Okay, that's good to hear. Start designing your tables and then post what you come up with, and then we'll give you some comments about it.
Sounds good?
azhar2006
May 18 2012, 11:12 AM
Hi DBguy
OK OK
I am ready
theDBguy
May 18 2012, 11:19 AM
So, after you build your tables, post them here so we can take a look and give you feedback.
azhar2006
May 18 2012, 11:29 AM
Hi DBguy
This is an example of the database and I explained in the file PDF
Also what I need
Any other ideas you
theDBguy
May 18 2012, 12:32 PM
Okay, that's a good start but you're not quite there yet. Remember to always have a primary key in your tables and use the Autonumber field for it. Using a text field for a primary key is not really a good idea.
In your reservations table, I would suggest storing both the date and time in the StartDate and EndDate fields. That way, you won't need an extra field called "Time," which is a *reserve* word by the way, which could cause problems later on. Also, try to put a few more data in the tables for testing to make sure we can see the whole picture.
Go back and take a look at the table structure I recommended earlier.
Just my 2 cents...
azhar2006
May 18 2012, 12:57 PM
Hi All
DBguy
The first tables do not work well
But by the time I want to make reservation for the room already so I added the time
theDBguy
May 18 2012, 01:01 PM
QUOTE (azhar2006 @ May 18 2012, 10:57 AM)

The first tables do not work well
If you are referring to the table structure I recommended, please explain why you think they don't work in your case.
QUOTE
But by the time I want to make reservation for the room already so I added the time
I recommend adding the time to the dates instead of in a separate field. For example, the StartDate would have something like 5/18/2012 8:00 PM, and the EndDate would have something like 5/18/2012 9:00 PM for a 1-Hour reservation.
Just my 2 cents...
azhar2006
May 18 2012, 03:23 PM
Show me Cubuma error when adding a second College
theDBguy
May 21 2012, 10:07 AM
Hi,
QUOTE (azhar2006 @ May 18 2012, 01:23 PM)

Show me Cubuma error when adding a second College
Not sure what error you were getting but I tried to add a second college and did not get any error.
On a different note, the CollegeID field in your table tblCollegeHalls should be a Number instead of Text. Same thing with the field CollegeHallID in tblHallReservations, it should be a Number, not a Text.
After you fix those, go back to your Relationship Window and set Referential Integrity for all your relationships.
These steps are in Chapter 4 of Crystal's Access Basics Tutorials.
Just my 2 cents...
azhar2006
May 21 2012, 10:18 AM
Hi All
I will do as explained to me /DBguy
And I also thank Michael for helping me
Thank you very much for all
Another question
Is it possible to work each College Table
John Vinson
May 21 2012, 03:18 PM
QUOTE (azhar2006 @ May 21 2012, 09:18 AM)

Is it possible to work each College Table
ummm... if you've been following the advice here, you will have only ONE College Table.
Please explain your question, and perhaps post a description of your current (or proposed) table structure.
theDBguy
May 21 2012, 03:26 PM
Hi azhar,
QUOTE (azhar2006 @ May 21 2012, 08:18 AM)

Thank you very much for all

We are all happy to help.
QUOTE
Another question
Is it possible to work each College Table
As John pointed out, it's best to keep all your College info in only one table.
Good luck with your project.
azhar2006
May 22 2012, 10:38 AM
Hi All
Thank you all very much
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.