query question for 3 tables...
==
Table Student
Student_NO NOT NULL CHAR(10)
NAME NOT NULL CHAR(30)
STREET NOT NULL CHAR(20)
POSTCODE NOT NULL CHAR(20)
DOB NOT NULL DATE
Stuent_TYPE NOT NULL CHAR(10)
Student_EXP_DATE NOT NULL DATE
Student_STATUS NOT NULL CHAR(1)
SUSP_CEASE_DATE DATE
Table Offence
OFF_DATETIME NOT NULL DATE
DEMERIT_CODE NOT NULL NUMBER(2)
MOD_DATETIME NOT NULL DATE
MOD_NAME NOT NULL CHAR(30)
Studnet_NO NOT NULL CHAR(10)
Table Demerit
DEMERIT_CODE NOT NULL NUMBER(2)
DESCRIP NOT NULL VARCHAR2(200)
POINTS NOT NULL NUMBER(1)
==
given the student_no, how can I find out if the student
have incur infringement points (points) which total 10 or more for the last 2 years?
thanks
==
Table Student
Student_NO NOT NULL CHAR(10)
NAME NOT NULL CHAR(30)
STREET NOT NULL CHAR(20)
POSTCODE NOT NULL CHAR(20)
DOB NOT NULL DATE
Stuent_TYPE NOT NULL CHAR(10)
Student_EXP_DATE NOT NULL DATE
Student_STATUS NOT NULL CHAR(1)
SUSP_CEASE_DATE DATE
Table Offence
OFF_DATETIME NOT NULL DATE
DEMERIT_CODE NOT NULL NUMBER(2)
MOD_DATETIME NOT NULL DATE
MOD_NAME NOT NULL CHAR(30)
Studnet_NO NOT NULL CHAR(10)
Table Demerit
DEMERIT_CODE NOT NULL NUMBER(2)
DESCRIP NOT NULL VARCHAR2(200)
POINTS NOT NULL NUMBER(1)
==
given the student_no, how can I find out if the student
have incur infringement points (points) which total 10 or more for the last 2 years?
thanks