0% found this document useful (0 votes)
3 views2 pages

Group Assignment

Uploaded by

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

Group Assignment

Uploaded by

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

Fname

ERD
Mname

Language

Name
Lname
DeptLocation LID

DeptID Age
1 Has N LECTURER
DEPARTMENT

Sex
1 M
DeptName

Has
Has
1
Ccode
N

N N
COURSE Cname
Has
DEPANDANT
M
Title
1
Take CGPA

Sex
N
Email

Address STUDENT StudID


Phone

Address
City Age
Name

Kebele SFname
SLname
SMnam
e

GROUP ASSIGNMENT 20%


I. Based on the above ERD:
A. Translate the ERD diagram to logical schema
B. How many entities are there
C. How many attributes are there for each entities
D. Based on Q. B, Create all tables in ELEC database by Appling types of constraints.
E. Display a relationship you have created.
F. Add new column into lecturer table named “EmailAddress” with data type
varchar and size 25.
G. Change “EmailAddress” data type varchar to char and size 15.
H. Add new column into student table named “BirthDate” with data type char and
size 12.
I. For each tables Insert at least 4 records
J. Create a SQL command to change the student birthdate for students that belongs
to one department
K. Write a query to display the student name for all students those who take course
“JAVA” and scores Grade “A”.
L. Create a query that will provide the student's name and age for all female students
enrolled in Java courses who receive "F" grades.
M. Create a query that will show all students in a given department (computer
science, electrical, etc.) that receive grades between "A" and "D."
N. Create a query that will show the student ID and Fname for every student enrolled
in an electrical department, including those whose names contain the letter "A."
O. Write a query to display the course information who didn’t take by student.
P. Create a query that shows the details of students enrolled in fewer than two
courses.
Q. Create a query that, for students enrolled in more than three courses, shows their
student ID, name, and course number in ascending order.
R. Use the password "123" to create a database backup and recovery.

Date of submission: 18/04/2017E.C.


GROUP ASSIGNMENT 20%

You might also like