Click here to Skip to main content
15,891,372 members
Home / Discussions / Database
   

Database

 
GeneralRe: Data Storage from SP Pin
Dayekh20-Nov-06 5:46
Dayekh20-Nov-06 5:46 
GeneralRe: Data Storage from SP Pin
Colin Angus Mackay20-Nov-06 23:24
Colin Angus Mackay20-Nov-06 23:24 
GeneralRe: Data Storage from SP Pin
Dayekh21-Nov-06 1:28
Dayekh21-Nov-06 1:28 
Questioncheck data integrity using triggers Pin
drequinox20-Nov-06 4:03
drequinox20-Nov-06 4:03 
AnswerRe: check data integrity using triggers Pin
Pete O'Hanlon20-Nov-06 4:33
mvePete O'Hanlon20-Nov-06 4:33 
GeneralRe: check data integrity using triggers Pin
drequinox20-Nov-06 7:27
drequinox20-Nov-06 7:27 
QuestionRe: check data integrity using triggers Pin
drequinox20-Nov-06 9:50
drequinox20-Nov-06 9:50 
QuestionAccess 2000-Jet/VB6 - SQL Query (HELP- SQL Gurus) Pin
tintinchasm19-Nov-06 22:34
tintinchasm19-Nov-06 22:34 
I have been assigned some work to generate particular queries and am having problems on how to JOIN the tables and structure the WHERE clause appropriately. Here Goes

The System is a School Administration System with a VB6 front-end and Access 2000 Backend. The database was already designed so I cant re-design it, I'm just trying to create the queries.

I have to come up with a query that returns Exam Papers not written by a particular Student in a particular class.
(I will attach the database file minus the data and some of its structure)
Ok here us the description of the Database structure.

There are Students, each uniquely identified by StudentID.

There is a SubjectClass table which has data on every class in the school, uniquely identified by SubjectClassID

There is a SubjectClassStudents table which is a collection of all students in classes. Each Student has a corresponding
SubjectClassID,StudentID and SubjectClassStudentsID to uniquely identify each record.

There is an Exams table as well. Each Exam has its corresponding SubjectClass. Each record therefore has
ExamID,SubjectClassID to uniquely identify it.

Each Exam can have several Papers. So the Exam table also has a NumberOfPapers field

Each Paper has its own unique PaperID,and ExamID to uniquely identify it

There is a PaperMarks table to store all the marks of Papers written

Here is the structure on text (table names in bold, fields seperated by "|")

Students
StudentID | StudentName

SubjectClass
SubjectClassID | SubjectClassName

SubjectClassStudents
SubjectClassStudentsID | SubjectClassID | StudentID

Exam
ExamID | SubjectClassID | ExamName | NumberOfPapers
Paper
PaperID | ExamID | PaperName

PaperMarks
PaperMarksID |PaperID | StudentID

The problem now:

Find the Papers NOT written by a Particular Student in a Particular SubjectClass

I have a sample database but dont know how i can post it here.
AnswerRe: Access 2000-Jet/VB6 - SQL Query (HELP- SQL Gurus) Pin
rah_sin20-Nov-06 0:02
professionalrah_sin20-Nov-06 0:02 
GeneralRe: Access 2000-Jet/VB6 - SQL Query (HELP- SQL Gurus) Pin
tintinchasm20-Nov-06 6:11
tintinchasm20-Nov-06 6:11 
QuestionENUM Pin
thathvamsi19-Nov-06 21:35
thathvamsi19-Nov-06 21:35 
AnswerRe: ENUM Pin
Leah_Garrett22-Nov-06 13:20
Leah_Garrett22-Nov-06 13:20 
QuestionDB Owner - Diagrams Pin
MatthysDT19-Nov-06 19:59
MatthysDT19-Nov-06 19:59 
AnswerRe: DB Owner - Diagrams Pin
Leah_Garrett22-Nov-06 13:24
Leah_Garrett22-Nov-06 13:24 
QuestionSQL error Pin
walalawll19-Nov-06 15:31
walalawll19-Nov-06 15:31 
AnswerRe: SQL error Pin
Mike Dimmick20-Nov-06 0:52
Mike Dimmick20-Nov-06 0:52 
GeneralRe: SQL error Pin
walalawll29-Nov-06 21:22
walalawll29-Nov-06 21:22 
QuestionTimeout exception error Pin
Lior S19-Nov-06 4:04
Lior S19-Nov-06 4:04 
AnswerRe: Timeout exception error Pin
Colin Angus Mackay19-Nov-06 4:58
Colin Angus Mackay19-Nov-06 4:58 
AnswerRe: Timeout exception error Pin
ThaScorpion19-Nov-06 13:44
ThaScorpion19-Nov-06 13:44 
QuestionDatatype mismatch...column type date/time Pin
Skcheng18-Nov-06 17:09
Skcheng18-Nov-06 17:09 
AnswerRe: Datatype mismatch...column type date/time Pin
Rob Graham19-Nov-06 6:19
Rob Graham19-Nov-06 6:19 
GeneralRe: Datatype mismatch...column type date/time [modified] Pin
Skcheng19-Nov-06 8:57
Skcheng19-Nov-06 8:57 
GeneralRe: Datatype mismatch...column type date/time Pin
Skcheng19-Nov-06 11:06
Skcheng19-Nov-06 11:06 
AnswerRe: Datatype mismatch...column type date/time Pin
Scott Holt20-Nov-06 16:17
Scott Holt20-Nov-06 16:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.