SELECT [Lecturer].FirstName,[Lecturer].LastName,[School].SchoolName,[Faculty].FacultyName,[TimetableBooking].LecturerId,[TimetableBooking].Semester,[TimetableBooking].WeekDay,[TimetableBooking].PeriodNr,[TimetableBooking].RoomRoomNr,[Lecturer].EmailAddress,[TimetableBooking].ClassId
FROM Lecturer,
School,
Faculty,
TimetableBooking,
Room,
Position,
Timeslot
WHERE Lecturer.SchoolId = School.SchoolId
AND School.FacultyId = Faculty.FacultyId
AND TimetableBooking.FacultyId = Faculty.FacultyId
AND TimetableBooking.RoomRoomNr = Room.RoomRoomNr
AND Lecturer.PositionId = Position.PositionId
AND TimetableBooking.Semester = Timeslot.Semester
AND TimetableBooking.WeekDay = Timeslot.WeekDay
AND TimetableBooking.PeriodNr = Timeslot.PeriodNr
AND Room.RoomName = ‘A1’
match $p isa person; i$ isa issue; $auth1($i, $p) isa authorship;
$r isa repostitory; cr$($is,$r) isa contains;
$m isa milestone; $cm($i,$m) isa contains;
$p2 isa person; $p != $p2; $ass($i,$p2$) isa assignment;
$comm isa comment; $t ($i, $comm) isa thread;
$p3 isa person; $p2 != $p3; $auth2 ($comm, $p3) isa authorship;
$i2 isa issue; $dep ($i,$i2) isa dependency;
limit 5; offset 0; get;
欢迎光临 智客公社 (http://bbs.cnaiplus.com/) | Powered by Discuz! X3.4 |