0% found this document useful (0 votes)
11 views

Database

The document provides SQL code to create database tables for a university management system. It includes commands to create tables for login credentials, students, teachers, subjects, marks, fees, and student fee details. Thirteen commands are listed to generate tables for storing user authentication, user profiles, course enrollment, academic performance, tuition costs, and tuition payment records.

Uploaded by

shindesau294
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Database

The document provides SQL code to create database tables for a university management system. It includes commands to create tables for login credentials, students, teachers, subjects, marks, fees, and student fee details. Thirteen commands are listed to generate tables for storing user authentication, user profiles, course enrollment, academic performance, tuition costs, and tuition payment records.

Uploaded by

shindesau294
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

------------------

CODE FOR INTERVIEW


------------------

Do Subscribe our Youtube channel and Please like the video if you liked it
Channel: https://www.youtube.com/channel/UCo9P-eIdR00Fn1gA_ylaHdQ

Instagram
username: codeforinterview
https://www.instagram.com/codeforinterview

Telegram
username: codeforinterview
https://t.me/codeforinterview

---------------------------------------------------
Database Queries for UNIVERSITY MANAGEMENT SYSTEM Project
---------------------------------------------------

1 - Create database

create database universitymanagementsystem;

2 - Use database you just created

use universitymanagementsystem;

3 - Create login table

create table login(username varchar(25), password varchar(25));

4 - Insert some values in the login table

insert into login values('admin', '12345');

5 - Create student table

create table student(name varchar(40), fname varchar(40), rollno varchar(20), dob


varchar(40), address varchar(100), phone varchar(20), email varchar(40), class_x
varchar(20), class_xii varchar(20), aadhar varchar(20), course varchar(40), branch
varchar(40));

6 - Create teacher table

create table teacher(name varchar(40), fname varchar(40), empId varchar(20), dob


varchar(40), address varchar(100), phone varchar(20), email varchar(40), class_x
varchar(20), class_xii varchar(20), aadhar varchar(20), education varchar(40),
department varchar(40));

7 - Create student leave table

create table studentleave(rollno varchar(20), date varchar(50), duration


varchar(20));

8 - Create teacher leave table

create table teacherleave(empId varchar(20), date varchar(50), duration


varchar(20));
9 - Create table to store subjects

create table subject(rollno varchar(20), semester varchar(20), subject1


varchar(50), subject2 varchar(50), subject3 varchar(50), subject4 varchar(50),
subject5 varchar(50));

10 - Create table to store marks

create table marks(rollno varchar(20), semester varchar(20), marks1 varchar(50),


marks2 varchar(50), marks3 varchar(50), marks4 varchar(50), marks5 varchar(50));

11 - Create table for fee structure

create table fee(course varchar(20), semester1 varchar(20), semester2 varchar(20),


semester3 varchar(20), semester4 varchar(20), semester5 varchar(20), semester6
varchar(20), semester7 varchar(20), semester8 varchar(20));

12 - Insert some values in the table

insert into fee values("BTech", "48000",


"43000","43000","43000","43000","43000","43000","43000");

insert into fee values("Bsc", "40000",


"35000","35000","35000","35000","35000","",";

insert into fee values("BCA", "35000",


"34000","34000","34000","34000","34000","",";

insert into fee values("MTech", "65000", "60000","60000","60000","","","",;

insert into fee values("MSc", "47500", "45000","45000","45000","","",";

insert into fee values("MCA", "43000", "42000","42000","49000","","",";

insert into fee values("Bcom", "22000",


"20000","20000","20000","20000","20000","",";

insert into fee values("Mcom", "36000", "30000","30000","30000","","","";

13 - Create table to store student fee details

create table collegefee(rollno varchar(20), course varchar(20), branch varchar(20),


semester varchar(20), total varchar(20));

Code For Interview


Channel: https://www.youtube.com/channel/UCo9P-eIdR00Fn1gA_ylaHdQ

You might also like