Print Page | Close Window

How to make this Database?!

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Database Discussion
Forum Description: Discussion and chat on database related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=3627
Printed Date: 28 March 2026 at 7:54am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: How to make this Database?!
Posted By: zMaestro
Subject: How to make this Database?!
Date Posted: 18 June 2003 at 5:37am
Hi, I want your Help...
 
I want to make a report for students absence in a school, I don't know how to make the database,
will I make a table have the columns "StudentName" and a 356 other column for each day, and a check is placed when he is absent that day, or what? this way will work but is there something better.
 
Thanks.



Replies:
Posted By: ljamal
Date Posted: 18 June 2003 at 7:57am
Have a table called STUDENT which contains fields for
StudentID
strFirstName
strLastName
and what ever other information you need about the student
and another table called DATEABSENT which contains fields for
StudentID
dteAbsent

In STUDENT, StudentID would be the primary key. In DATEABSENT, StudentID and dteAbsent together would be the primary key. StudentID would be a foriegn key referencing the StudentID in the student table.

When a student is absent the date would be entered into the DATEABSENT table by adding the StudentID and the date. A table join could be used join the information together such as:
Select STUDENT.*, DATEABSENT.DteAbsent from STUDENT, DATEABSENT where STUDENT.studentID = DATEABSENT.StudentID

-------------
L. Jamal Walton

http://www.ljamal.com/" rel="nofollow - L. Jamal Inc : Web/ Print Design and ASP Programming


Posted By: zMaestro
Date Posted: 18 June 2003 at 12:50pm

Thanks ljamal,

 

It worked very good.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net