SELECT ClassRoom.ClassName, Staff_Info.StaffId, ClassHours.HourName, Subjects.SubName, DayTable.DayName
FROM ClassRoom INNER JOIN
Cst ON ClassRoom.ClassId = Cst.ClassId INNER JOIN
Staff_Info ON Cst.StaffId = Staff_Info.StaffId AND Cst.StaffId = Staff_Info.StaffId INNER JOIN
Subjects ON Cst.SubjectId = Subjects.SubjectId CROSS JOIN
DayTable CROSS JOIN
ClassHours