0% found this document useful (0 votes)
12 views4 pages

Database Group 2 M

The document creates and populates tables for a student record system (SRS) database including tables for administrators, departments, academic profiles, courses, and students. Administrator and department tables are created with 2 columns each. The academic profile table is created with 5 columns. The course table is created with 6 columns and populated with 5 courses. The student table is created with 11 columns and populated with 12 students. Finally, select statements are used to view the data in each table.

Uploaded by

chak.m.beyena
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views4 pages

Database Group 2 M

The document creates and populates tables for a student record system (SRS) database including tables for administrators, departments, academic profiles, courses, and students. Administrator and department tables are created with 2 columns each. The academic profile table is created with 5 columns. The course table is created with 6 columns and populated with 5 courses. The student table is created with 11 columns and populated with 12 students. Finally, select statements are used to view the data in each table.

Uploaded by

chak.m.beyena
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

create database SRS;

use SRS;
create table administrator(adminid int not null primary key,password
varchar(10));
insert into administrator(adminid,password) values(32413,'adminis');
select *from administrator;

use SRS;
create table department(departmentid int not null primary key,departmentname
varchar(20));
insert into department(departmentid,departmentname) values(71111,'mis');

select *from department;

use SRS;
create table acadamicprofile(marksobtain varchar(10),totalmarks int,percentage
int,coursename varchar(20),university varchar(10));
insert into acadamicprofile values('unknown',4,99,'database','mattu')
select *from acadamicprofile;

use SRS;
create table course(courseid int not null primary key,coursename
varchar(20),courseduration varchar(5),crhours int,instructor varchar(10),year
int);
insert into course values(321,'database','null',3,'tirate',2023);
insert into course values(322,'datascience','null',3,'roza',2023);
insert into course values(323,'dc','null',3,'lalisa',2023);
insert into course values(324,'datastructure','null',3,'gudisa',2023);
insert into course values(325,'oosad','null',3,'lamesa',2023);

select *from course;

use SRS;
create table student(studentid int not null primary key,sfname
varchar(10),smname varchar(10),slname varchar(10),password int,mothername
varchar(10),landmarks varchar(10),nationality varchar(10),phoneno int,program
varchar(10),stream varchar(10));
insert into student
values(1121,'chala','merga','beyena',546555,'nafkot','oromia','ethiopian',0934
343,'regular','social');
insert into student
values(1122,'tola','branu','asefa',546555,'ababu','snnp','ethiopian',093465657,
'regular','social');
insert into student
values(1123,'kumaa','daba','alela',546555,'jitu','oromia','ethiopian',093543,'r
egular','social');
insert into student
values(1124,'jitu','qalbi','chibsa',546555,'warkinash','oromia','ethiopian',09361
1,'regular','social');
insert into student
values(1126,'hiwot','husen','adane',546555,'zabiba','tigray','ethiopian',0934343,'re
gular','social');
insert into student
values(1126,'tola','branu','asefa',546555,'sabontu','sidama','ethiopian',093465657
,'regular','social');
insert into student
values(1127,'kumaa','daba','alela',546555,'fayine','oromia','ethiopian',093543,
'regular','social');
insert into student
values(1128,'aboma','qalbi','chibsa',546555,'bontu','oromia','ethiopian',093611
,'regular','social');
insert into student
values(11210,'lidu','biranu','dalesa',546555,'warkinash','amhara','ethiopian',0934343,
'regular','social');
insert into student
values(11211,'tolera','tokuma','asefa',546555,'debi','oromia','ethiopian',093465
657,'regular','social');
insert into student
values(11212,'olana','jorro','qubuta',546555,'kefelech','sumale','ethiopian',093543,'
regular','social');
insert into student
values(11213,'Abeba','tolcha','abdisa',546555,'dame','oromia','ethiopian',093611,'
regular','social');
select *from student;

Admin or Administrator

Department table

Accadamic profile table.


Its primary key was student id but we have missed. So Escuse us teacher.

Course table
Students table

You might also like