473,385 Members | 2,180 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,385 software developers and data experts.

Relationship and tables questions...

Hi I created a databse system but i have a problem figuring out how to
create some tables / relationships....

The part of the systems that i am having problems with is the
following i have a person (person table) that a specific date & time
might be busy / available / tentative.

I tried to create a different table for date and time so that i can
define the times 01-24 and then i can reuse them.

But i am having trouble thinging the relationship / tables and how
this can happend ..

one person can be busy / available / tentative at many dates but busy
availble tentative at only one time...

I am confused ;-(

I am also confused about the contents of the tables.i think that date
must have date(primary key) and person foreign key :e.g 12/12/2009 .
time should have time (primary key) and date foreign key..
Please help me.. ;-)
Jan 16 '08 #1
1 1266
I'd default that a person is available unless otherwise stated
I'd set my tables as follows:

tblPerson
person_id Autonumber
person_name Text

tblAppointments
appointment_id Autonumber
appointment_type Number (byte, 1=Tentative;2=Busy)
appointment_start Date/Time
appointment_end Date/Time
appointment_person_id Number (FK to tblPerson.person_id)

I hope that'll get you started.
Dominic

"Ivan" <iv*************@gmail.comwrote in message
news:71**********************************@y5g2000h sf.googlegroups.com...
Hi I created a databse system but i have a problem figuring out how to
create some tables / relationships....

The part of the systems that i am having problems with is the
following i have a person (person table) that a specific date & time
might be busy / available / tentative.

I tried to create a different table for date and time so that i can
define the times 01-24 and then i can reuse them.

But i am having trouble thinging the relationship / tables and how
this can happend ..

one person can be busy / available / tentative at many dates but busy
availble tentative at only one time...

I am confused ;-(

I am also confused about the contents of the tables.i think that date
must have date(primary key) and person foreign key :e.g 12/12/2009 .
time should have time (primary key) and date foreign key..
Please help me.. ;-)

Jan 16 '08 #2

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

Similar topics

8
by: Andante.in.Blue | last post by:
Hello, I have just inherited a legacy Access 97 database. While going through it, I noticed something strange... its Relationships window (the one accessed by Tools --> Relationships) is almost...
2
by: Marco Simone | last post by:
Hi, I have 4 tables, tblCompany, tblA, tblB and tblC. tblA, tblB and tblC contain same type of data, they should be in one table, but since there are many fields, I split it into 3 tables. Each...
2
by: Rararachel | last post by:
Hi All, (Have posted this elsewhere, so apologies to anyone who's seen this behemoth before!) I have a simple, but surprisingly complicated database requirement in that the database requires...
1
by: Michael D. Reed | last post by:
I have two tables in an Access database with a Many-to-Many relationship, there is a connection table. The tables are , , and the connection table is this is a standard Many-to-Many relationship...
5
by: odntuk | last post by:
Hello, I'm new to database development and need your help. Although, I'm new I know that storing multiple entries into a database field is a horrible idea. Therefore, I'm trying to implement...
1
by: adham | last post by:
Hey there, Im not even sure if im using the terminology correctly. Anyway heres my questions. I have a three tables. The main table has two ID fields. A website id, which is the primary key in...
10
by: Richard | last post by:
Hi folks, thanks for taking the time to read this (and hopefully point our where I'm going wrong). The scenario: I have a local Access2007 database which links in several read only mySql...
4
by: Phil Stanton | last post by:
Having spent ages sorting out the layout of my relationship window with about 60 tables and getting it all tidy and with enough of the tables visible to show the PK an FK relaionshipsOn a subseqent...
6
by: NicoleCartrette | last post by:
Going back to school is easier said than done.. This was posted to an older thread earlier but I don't think it got any attention. Your help is appreciated Professor requires we create a...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.