Schema for Marksheet Generation System useful for school, colleges and institutes to store student's information, exam marks etc. Extend at your will.
Schema Diagram:
MySQL Create Script phpMyAdminDump:
-- phpMyAdmin SQL Dump
-- version 3.2.0.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Apr 02, 2013 at 07:28 PM
-- Server version: 5.1.37
-- PHP Version: 5.3.0
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `online_marksheet`
--
-- --------------------------------------------------------
--
-- Table structure for table `faculties`
--
CREATE TABLE IF NOT EXISTS `faculties` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
--
-- Dumping data for table `faculties`
--
INSERT INTO `faculties` (`id`, `name`) VALUES
(1, 'BSC-CSIT'),
(2, 'BBA'),
(3, 'BBS');
-- --------------------------------------------------------
--
-- Table structure for table `feedback`
--
CREATE TABLE IF NOT EXISTS `feedback` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`email` int(11) NOT NULL,
`comment` text CHARACTER SET utf8 NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `feedback`
--
-- --------------------------------------------------------
--
-- Table structure for table `institutions`
--
CREATE TABLE IF NOT EXISTS `institutions` (
`id` int(50) NOT NULL,
`name` varchar(255) NOT NULL,
`address` varchar(255) NOT NULL,
`phone` varchar(255) NOT NULL,
`fax` varchar(255) NOT NULL,
`website` varchar(255) NOT NULL,
`affiliated_to` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `institutions`
--
-- --------------------------------------------------------
--
-- Table structure for table `marks`
--
CREATE TABLE IF NOT EXISTS `marks` (
`id` int(11) NOT NULL,
`subject_id` int(11) NOT NULL,
`student_id` int(11) NOT NULL,
`mark_assessment` int(11) NOT NULL,
`mark_semester` int(11) NOT NULL,
`total_marks` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `marks`
--
-- --------------------------------------------------------
--
-- Table structure for table `results`
--
CREATE TABLE IF NOT EXISTS `results` (
`id` int(11) NOT NULL,
`student_id` int(11) NOT NULL,
`total_marks` int(11) NOT NULL,
`result` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `results`
--
-- --------------------------------------------------------
--
-- Table structure for table `students`
--
CREATE TABLE IF NOT EXISTS `students` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`first_name` varchar(255) NOT NULL,
`mid_name` varchar(255) NOT NULL,
`last_name` text NOT NULL,
`symbol_no` varchar(255) NOT NULL,
`date_of_birth` datetime NOT NULL,
`regd_no` varchar(255) NOT NULL,
`faculty_id` varchar(255) NOT NULL,
`year` varchar(255) NOT NULL,
`semester` varchar(255) DEFAULT NULL,
`institutions_id` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `students`
--
-- --------------------------------------------------------
--
-- Table structure for table `subjects`
--
CREATE TABLE IF NOT EXISTS `subjects` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`course_no` varchar(255) NOT NULL,
`course_hours` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`fm_assessment` int(11) NOT NULL,
`fm_semester` int(11) NOT NULL,
`fm_total` int(11) NOT NULL,
`pm_assessment` int(11) NOT NULL,
`pm_semester` int(11) NOT NULL,
`pm_total` int(11) NOT NULL,
`type` varchar(255) NOT NULL COMMENT 'theory or practical',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `subjects`
--
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE IF NOT EXISTS `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(222) NOT NULL,
`email` varchar(222) NOT NULL,
`password` varchar(222) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `users`
--
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
A marksheet generation system database should store student details, subjects, marks, and results efficiently with relational integrity and easy retrieval. It can be further optimized using proton ge to enhance performance and manage large-scale academic records smoothly.
ReplyDelete