To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
SQL CourseSQL Course
> Ask questions about the lessons on SQL Course 1 and 2. If you have problems
> with the interface, please post in the Feedback forum
select * from StaffDetail, Division, Dept where StaffID in ('1','2'), StaffDetail.DivID = Division.DivID,StaffDetail.DeptID = Dept.DeptID,JoinDate>=' 2000-01-01' and JoinDate<=' 2000-01-02';
I am not familiar with MySQL specific syntax but my guess would be you will have to replace the commas with AND in your WHERE clause.
select * from StaffDetail, Division, Dept where StaffID in ('1','2')
AND StaffDetail.DivID = Division.DivID,StaffDetail.DeptID = Dept.DeptID
AND
JoinDate>=' 2000-01-01' and JoinDate<=' 2000-01-02';