473,468 Members | 1,352 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Database Structure

Hi,

We're planning a web application which
will allow teachers to plan their teacher diary online.
So for instance:
Mondag 8.50 - 9.40 --> Math (First Grade)
Mondag 9.40 - 10.30 --> French (Sixth Grade)
And so on for an entire week.
We have made some simple applications using only
a limited number of tables. But we're having some
trouble with the database structure for this one.
More specific: we're guessing we can't use one table
for the entire week schedule of all the teachers. But
do we have to make a new table for every teacher or
a new table for each day?
We would appreciate it if somebody could advise us
on our database structure.

Thanks,
MJ
Jul 20 '05 #1
1 1949
On 24 Aug 2004 05:50:05 -0700, in mailing.database.mysql
mj********@yahoo.com (Maarten Hendrikx) wrote:
| Hi,
|
| We're planning a web application which
| will allow teachers to plan their teacher diary online.
| So for instance:
| Mondag 8.50 - 9.40 --> Math (First Grade)
| Mondag 9.40 - 10.30 --> French (Sixth Grade)
| And so on for an entire week.
| We have made some simple applications using only
| a limited number of tables. But we're having some
| trouble with the database structure for this one.
| More specific: we're guessing we can't use one table
| for the entire week schedule of all the teachers. But
| do we have to make a new table for every teacher or
| a new table for each day?
| We would appreciate it if somebody could advise us
| on our database structure.


Teachers
---------
TeacherID int(11) not null auto-increment
TeacherName varchar(100) default ''
username varchar(25)
password varchar(25)

Classes
-------
ClassID int(11) not null auto-increment
ClassName varchar(50)

Grade
-----
GradeID int(11) not null auto-increment
GradeName varchar(50)

Diary
-----
DiaryID int(11) not null auto-increment
TeacherID int(11) not null default 0
ActivityDate date
ActivityTime time
ActivityDuration int(11)
ClassID int(11) not null default 0
GradeID int(11) not null default 0
---------------------------------------------------------------
jn****@yourpantsbigpond.net.au : Remove your pants to reply
---------------------------------------------------------------
Jul 20 '05 #2

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

Similar topics

2
by: bryja_klaudiusz[at]poczta[dot]fm | last post by:
Hi, How to copy database diagram (all data) to other server using only MSDE server and VS.Net Proffesional? I have no Enterprice manager. I have to move database (create on my machine) to my...
1
by: Srihari | last post by:
I'm trying to develop a tree structure using javascript. The node values of the tree are generating from a mysql table depending on login. The tree structure contains 3 sub levels. I developed...
346
by: rkusenet | last post by:
http://biz.yahoo.com/rc/040526/tech_database_marketshare_1.html Interesting to see that database sales for windows is more than Unix.
25
by: Colin McKinnon | last post by:
Hi all, There's lots of DB abstraction layers out there, but a quick look around them hasn't turned up anything which seems to met my requirements. Before I go off and write one I thought I'd...
3
by: josh.kuo | last post by:
Sorry about the subject, I can't think of a better one. I recently wrote some PHP classes that I think might be of interest to this group. Since I have been reaping the benefits of reading news...
1
by: Eric Sadoyama | last post by:
I have a database documentation question, but I am not even sure how to phrase it properly so I don't know where to start looking for answers. We are developing a database that is based on...
1
by: barkana | last post by:
Platform: ANSI C, RTOS Hi, I am trying to fread a database from a text file, and assign the database directly to the public structure below. In the text file first 20 chars is for SKU next 35 chars...
8
by: situ | last post by:
Hello all, i have Database1 and database2, is it possible to make database connection to database2 by running stored procedure on database1. Thanks and Regards Situ
9
by: Peter Duniho | last post by:
Is there a straightfoward API in .NET that allows for inspection of a database? That is, to look at the structure of the database, without knowing anything in advance about it? For example,...
5
rahulephp
by: rahulephp | last post by:
Hi there, can you please help me? i have data in array and i want to insert it in a single table. structure of table and array to be store is shown below: Please let me know how to store...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.