Hello all,
I am wondering if any of you might know what I am doing wrong in my situation. I am Using SQL server 2000
I am trying to count all the records in one table that fall between the date in that one table and a date in a second table. Is that possible to do?
so I have something like this
select count(Active)
from tblstudent, tblprofessor
where tblStudent.Startdate between tblStudent.Startdate and tblProfessor.EndDate
I have tried using a Join but I am not sure if I am doing something wrong too. Also the one error message I get relates to Active being ambiguous. (it does exist on both tables although one of them does not really need the active field)
Any help I would truly appreciate.
Thank you,
I am wondering if any of you might know what I am doing wrong in my situation. I am Using SQL server 2000
I am trying to count all the records in one table that fall between the date in that one table and a date in a second table. Is that possible to do?
so I have something like this
select count(Active)
from tblstudent, tblprofessor
where tblStudent.Startdate between tblStudent.Startdate and tblProfessor.EndDate
I have tried using a Join but I am not sure if I am doing something wrong too. Also the one error message I get relates to Active being ambiguous. (it does exist on both tables although one of them does not really need the active field)
Any help I would truly appreciate.
Thank you,