/*Table structure for table `jadwalperkuliahan` */
DROPTABLEIFEXISTS`jadwalperkuliahan`;
/*!50001 DROP VIEW IF EXISTS `jadwalperkuliahan` */;
/*!50001 DROP TABLE IF EXISTS `jadwalperkuliahan` */;
/*!50001 CREATE TABLE `jadwalperkuliahan`(
`id` int(11) ,
`Pengajar` varchar(255) ,
`Matkul` varchar(255) ,
`Kelas` varchar(8) ,
`Hari` varchar(10) ,
`Sesi` varchar(255) ,
`Akun` varchar(255)
)*/;
/*Table structure for table `pmk` */
DROPTABLEIFEXISTS`pmk`;
/*!50001 DROP VIEW IF EXISTS `pmk` */;
/*!50001 DROP TABLE IF EXISTS `pmk` */;
/*!50001 CREATE TABLE `pmk`(
`no_pengajar_id` int(11) ,
`no_kelas_id` int(11) ,
`kode` varchar(255) ,
`sks` int(11) ,
`kategori_id` int(11) ,
`no_matkul_id` int(11)
)*/;
/*View structure for view bobot */
/*!50001 DROP TABLE IF EXISTS `bobot` */;
/*!50001 DROP VIEW IF EXISTS `bobot` */;
/*!50001 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `bobot` AS select `pmk`.`no_pengajar_id` AS `no_pengajar_id`,sum(`mat`.`sks`) AS `SUM(mat.sks)`,`pen`.`kategori_id` AS `kategori_id` from ((`app_pengajar_matkul_kelas` `pmk` join `app_matkul` `mat` on((`pmk`.`no_matkul_id` = `mat`.`id`))) join `app_pengajar` `pen` on((`pmk`.`no_pengajar_id` = `pen`.`id`))) group by `pmk`.`no_pengajar_id` order by `pen`.`kategori_id`,sum(`mat`.`sks`) desc */;
/*View structure for view jadwalperkuliahan */
/*!50001 DROP TABLE IF EXISTS `jadwalperkuliahan` */;
/*!50001 DROP VIEW IF EXISTS `jadwalperkuliahan` */;
/*!50001 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `jadwalperkuliahan` AS select `jdw`.`id` AS `id`,`pjr`.`nama` AS `Pengajar`,`mat`.`nama` AS `Matkul`,`kls`.`nama` AS `Kelas`,`hr`.`nama` AS `Hari`,`ss`.`nama` AS `Sesi`,`ak`.`nama` AS `Akun` from ((((((`app_jadwal` `jdw` join `app_akun` `ak` on((`ak`.`id` = `jdw`.`no_Akun_id`))) join `app_hari` `hr` on((`hr`.`id` = `jdw`.`no_Hari_id`))) join `app_kelas` `kls` on((`kls`.`id` = `jdw`.`no_Kelas_id`))) join `app_matkul` `mat` on((`mat`.`id` = `jdw`.`no_Matkul_id`))) join `app_pengajar` `pjr` on((`pjr`.`id` = `jdw`.`no_Pengajar_id`))) join `app_sesi` `ss` on((`ss`.`id` = `jdw`.`no_Sesi_id`))) */;
/*View structure for view pmk */
/*!50001 DROP TABLE IF EXISTS `pmk` */;
/*!50001 DROP VIEW IF EXISTS `pmk` */;
/*!50001 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `pmk` AS select `bobot`.`no_pengajar_id` AS `no_pengajar_id`,`pmk`.`no_kelas_id` AS `no_kelas_id`,`mat`.`kode` AS `kode`,`mat`.`sks` AS `sks`,`mat`.`kategori_id` AS `kategori_id`,`pmk`.`no_matkul_id` AS `no_matkul_id` from ((`bobot` join `app_pengajar_matkul_kelas` `pmk` on((`pmk`.`no_pengajar_id` = `bobot`.`no_pengajar_id`))) join `app_matkul` `mat` on((`mat`.`id` = `pmk`.`no_matkul_id`))) */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;