casperinlove
05-18-2004, 12:23 PM
I have a problem need help,
a table contain date, topics, name.... etc.
what i need to do is
i) check who had join the same course more than once within 60 days
ii) check who had join more than once course within 14 days.
this mean that no more than once course allow withn 14 days and no duplicate courses allow within 60 days.
the datas in the table something like this...
DATE TOPICS NAME
14-JAN-2004 Mathematics Peter Anderson
14-JAN-2004 Mathematics Mary Thomson
-
-
-
-
-
20-FEB-2004 Physics Peter Anderson
20-FEB-2004 Physics Mary Thomson
-
-
-
-
-
Can anyone help for the SQL Queries to get the answers of it?
Thanks a lot.
a table contain date, topics, name.... etc.
what i need to do is
i) check who had join the same course more than once within 60 days
ii) check who had join more than once course within 14 days.
this mean that no more than once course allow withn 14 days and no duplicate courses allow within 60 days.
the datas in the table something like this...
DATE TOPICS NAME
14-JAN-2004 Mathematics Peter Anderson
14-JAN-2004 Mathematics Mary Thomson
-
-
-
-
-
20-FEB-2004 Physics Peter Anderson
20-FEB-2004 Physics Mary Thomson
-
-
-
-
-
Can anyone help for the SQL Queries to get the answers of it?
Thanks a lot.