Question: create ERD diagram - - - - Database: ` ems ` - - - - - - - - - - - - - -

create ERD diagram ---- Database: `ems`---------------------------------------------------------------- Table structure for table `absentees`-- CREATE TABLE `absentees`(`id` int(11) NOT NULL, `studentID` int(11) NOT NULL, `sectionID` int(11) NOT NULL, `date` date NOT NULL, `courseName` varchar(255) NOT NULL, `studentName` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; ---- Dumping data for table `absentees`-- INSERT INTO `absentees`(`id`,`studentID`,`sectionID`,`date`,`courseName`,`studentName`) VALUES (9,3,2,'2024-12-22', 'Calculus I', 'Salim'),(10,4,2,'2024-12-22', 'Calculus I', 'Rashid'),(11,3,1,'2024-12-22', 'Data Structures', 'Salim'),(12,4,1,'2024-12-22', 'Data Structures', 'Rashid'); -------------------------------------------------------------- Table structure for table `change_requests`-- CREATE TABLE `change_requests`(`requestID` int(11) NOT NULL, `scheduleID` int(11) NOT NULL, `newDate` date NOT NULL, `newTime` time NOT NULL, `lecturerID` int(11) NOT NULL, `requestDate` timestamp NOT NULL DEFAULT current_timestamp(),`requestStatus` varchar(50) NOT NULL DEFAULT 'pending' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; ---- Dumping data for table `change_requests`-- INSERT INTO `change_requests`(`requestID`,`scheduleID`,`newDate`,`newTime`,`lecturerID`,`requestDate`,`requestStatus`) VALUES (3,2,'2024-12-14','12:52:00',2,'2024-12-2308:50:17', 'rejected'),(4,3,'2024-12-12','15:58:00',1,'2024-12-2308:57:00', 'accepted'); -------------------------------------------------------------- Table structure for table `cheatingcases`-- CREATE TABLE `cheatingcases`(`caseID` int(11) NOT NULL, `studentID` int(11) NOT NULL, `cheatingCaseType` varchar(255) NOT NULL, `description` text NOT NULL, `incident_report` text NOT NULL, `fileName` varchar(255) NOT NULL, `status` varchar(50) NOT NULL, `submissionDate` timestamp NOT NULL DEFAULT current_timestamp()) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; ---- Dumping data for table `cheatingcases`-- INSERT INTO `cheatingcases`(`caseID`,`studentID`,`cheatingCaseType`,`description`,`incident_report`,`fileName`,`status`,`submissionDate`) VALUES (2,3, 'Smartwatch', '','','67685767a0576_PHOTO-2024-12-04-19-23-05.jpg', 'Pending', '2024-12-2218:16:07'); -------------------------------------------------------------- Table structure for table `course`-- CREATE TABLE `course`(`courseID` int(11) NOT NULL, `courseCode` varchar(15) NOT NULL, `courseName` varchar(255) DEFAULT NULL, `coordinatorID` int(11) DEFAULT NULL, `departmentID` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; ---- Dumping data for table `course`-- INSERT INTO `course`(`courseID`,`courseCode`,`courseName`,`coordinatorID`,`departmentID`) VALUES (1, 'ITDM1782', 'Data Structures', 1,1),(2, 'ITSW1110', 'Calculus I',2,2),(3, 'ITDM1220', 'Physics', 3,3); -------------------------------------------------------------- Table structure for table `courseregistration`-- CREATE TABLE `courseregistration`(`registrationID` int(11) NOT NULL, `studentID` int(11) DEFAULT NULL, `sectionID` int(11) DEFAULT NULL, `scheduleID` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; ---- Dumping data for table `courseregistration`-- INSERT INTO `courseregistration`(`registrationID`,`studentID`,`sectionID`,`scheduleID`) VALUES (1,3,1,1),(2,3,2,2),(3,4,3,3),(4,4,1,1),(5,4,2,2); -------------------------------------------------------------- Table structure for table `coursesection`-- CREATE TABLE `coursesection`(`sectionID` int(11) NOT NULL, `lecturerID` int(11) DEFAULT NULL, `sectionNumber` int(11) DEFAULT NULL, `numOfStudents` int(11) DEFAULT NULL, `courseID` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; ---- Dumping data for table `coursesection`-- INSERT INTO `coursesection`(`sectionID`,`lecturerID`,`sectionNumber`,`numOfStudents`,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!