If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > How would you structure this database...?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-14-04, 00:40
Isocene Isocene is offline
Registered User
 
Join Date: Jan 2004
Posts: 1
Question How would you structure this database...?

I am new to designing databases so I figured I would ask the professionals.

I'm designing an application to log people in an out of a tutoring facility. The first time a student comes they will enter some information and after that they will be looked up by their last name. Each time they come in they will visit the main station to login which will timestamp when they entered and another timestamp for when they leave.

So I guess I need to have 2 seperate databses, one with their information and some kind of id, and another with the time stamps.

What I'm not sure of is how the database with the timestamps should look? I don't have a good way to set this up. It's probably a simple but im lost.

Any help would be much appreciated.


Mike
mr54561 at swt.edu
Reply With Quote
  #2 (permalink)  
Old 01-14-04, 17:24
certus certus is offline
Registered User
 
Join Date: Dec 2003
Location: Canada
Posts: 710
You're doing fine Mark.

You don't have two databases, you have two tables. You have a student table and a session table.

All you seem to need is a start and end timestamp for the session by what you yourself have said, so just put in a start and end timestamp. What does the student table have that you can use to relate the two tables. (One student has many sessions)
__________________
visit: relationary
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On