473,385 Members | 2,028 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.

Need help with database design

I'm very new to databases so bear with me. What I need is a way to
track the training for the employees at my firm. I have 40 classes
that I will be teaching on various subjects and various levels of
difficulty. I have 100 employees that will need to take some of the
classes offered (already determined who needs to take what). I need a
way to track the training by class (did everyone who was supposed to
take the class, actually attend?), by student (have they each taken
what they are supposed to, what do they have left to take?) AND I need
to capture notes about each student for each class they take as well
as an overall student note. This database will then be a part of
performance reviews and effort at improving.

Any help at all would be appreciated, even pointers to an already
produced version of what I'm looking for. I don't have to master
Access, just get this done.

Thanks,
...Chris
Nov 12 '05 #1
2 1421
I recommend a 'class' database with descriptive fields about the classes
and also a student database with descriptive fields pertainint to each
person
then a master table that will duplicate each person for every class they
take and this table will have descriptive fields about the class, did they
actually attend, start finish, dates, the memo field can be the note.
Create a nice front end with use of the main menu form. Buttons to add,
delete, modify class
add, delete, modify student
add delete modify classs info

what do you think?

"cm500" <cm****@yahoo.com> wrote in message
news:7e**************************@posting.google.c om...
I'm very new to databases so bear with me. What I need is a way to
track the training for the employees at my firm. I have 40 classes
that I will be teaching on various subjects and various levels of
difficulty. I have 100 employees that will need to take some of the
classes offered (already determined who needs to take what). I need a
way to track the training by class (did everyone who was supposed to
take the class, actually attend?), by student (have they each taken
what they are supposed to, what do they have left to take?) AND I need
to capture notes about each student for each class they take as well
as an overall student note. This database will then be a part of
performance reviews and effort at improving.

Any help at all would be appreciated, even pointers to an already
produced version of what I'm looking for. I don't have to master
Access, just get this done.

Thanks,
..Chris

Nov 12 '05 #2
cm500 wrote:
I'm very new to databases so bear with me. What I need is a way to
track the training for the employees at my firm. I have 40 classes
that I will be teaching on various subjects and various levels of
difficulty. I have 100 employees that will need to take some of the
classes offered (already determined who needs to take what). I need a
way to track the training by class (did everyone who was supposed to
take the class, actually attend?), by student (have they each taken
what they are supposed to, what do they have left to take?) AND I need
to capture notes about each student for each class they take as well
as an overall student note. This database will then be a part of
performance reviews and effort at improving.

Any help at all would be appreciated, even pointers to an already
produced version of what I'm looking for. I don't have to master
Access, just get this done.


*disclaimer*: I am a web developer, so this may not fit well into an
Access database without a few advanced forms and/or controls...

At first glance, I think I would handle it as so:

classes
id (auto number - PK)
name (text)
description (memo)
start_date (date)
finish_date (date)

employees
id ([auto] number - PK)
fname (text)
lname (text)
notes (memo)

idx_emp_classes
employee_id (number)
class_id (number)
notes (memo)
attended (yes/no)

Don't know if access supports it or not, but the PK for idx_emp_classes
would be set in MySQL like "PRIMARY KEY (employee_id, class_id);" Which
prevents records with the same employee_id AND class_id from being
entered into the table, but allows multiples of either one.

When populating the database, if employee 12 needs to take classes 3, 6,
7, 8, 12, then the following would be entered into the idx_emp_classes
table:

INSERT INTO idx_emp_classes (employee_id, class_id) VALUES (12,3),
(12, 6),
(12, 7),
(12, 8),
(12, 12);

To see what classes are needed for employee 7, use:

SELECT classes.name, idx_emp_classes.attended FROM classes LEFT JOIN
idx_emp_classes ON idx_emp_classes.class_id = classes.id WHERE
idx_emp_classes.employee_id = 7;

This would return the name of all the required classes for the employee
with id 7, and whether or not they attended.

To see what employees are required for class 3, use:

SELECT employees.fname, employees.lname FROM idx_emp_classes.attended
FROM employees LEFT JOIN idx_emp_classes ON idx_emp_classes.employee_id
= employees.id WHERE idx_emp_classes.class_id = 3;

This would return the name of all the employees who are required to
attend class 3, and whether or not they attended.

--
Justin Koivisto - sp**@koivi.com
Nov 12 '05 #3

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

Similar topics

34
by: yensao | last post by:
Hi, I have a hard time to understand difference and similarities between Relational database model and the Object-Oriented model. Can somebody help me with this? Thank you in advance. ...
9
by: sk | last post by:
I have an applicaton in which I collect data for different parameters for a set of devices. The data are entered into a single table, each set of name, value pairs time-stamped and associated with...
3
by: google | last post by:
I have a database with four table. In one of the tables, I use about five lookup fields to get populate their dropdown list. I have read that lookup fields are really bad and may cause problems...
4
by: Jozef | last post by:
Hello, I'm trying to check for and add a field to a table to a back end database through code. The problem I've been faced with is changing permissions, because I have to use administer...
7
by: Jack Addington | last post by:
I've got a fairly simple application implementation that over time is going to get a lot bigger. I'm really trying to implement it in a way that will facilitate the growth. I am first writing a...
3
by: RAJESH | last post by:
I am working with c# and asp.net in developing web applications, iam using ..netframework 1.1 ,i want to know what is the need of 3-tier or 4-tier architecture in our application development.what...
5
by: Kristen | last post by:
I am using ASP.Net 2.0 and I need to create a web page on the fly based on what information is in the database. The page is going to have certain controls like text boxes and labels and buttons. ...
0
by: tekhneek | last post by:
I'm building a site for my family & friends to all keep in touch and the two features I'm coming to a halt about is this (in database design) I let users create their own pages (with a title and...
16
by: MS newsgroup | last post by:
I don't have clear reasons why we need business logic layer and data logic layer instead of having only data logic layer. Are there any good reasons for that?
1
by: Jaikrishnan | last post by:
Hi Friends, I recieved a mail contains .mdb file.When i downloaded and try to open that file i got the following error. The current user account doesn't have permission to convert or enable...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.